-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
files with shebang fail to run #19
Comments
Why is |
Works great, slightly bigger binaries though (~10k?) |
No particular reason. Keeping it as Lua source was easy to implement. |
is keeping the lua source within the binary necessary? im not too familiar with how it works, but wouldnt you have a much smaller binary without it? |
Lua has two kinds of function under the hood: C closures, and Lua closures. Counterintuitively, the luaaot functions are actually Lua closures. The easiest way to build those Lua Closure objects is to use loadstring to compile from source, or from bytecode. |
Oh I see, thats intresting! |
file:
Will fail at runtime, with
syntax error in bundled source code.
. Using #18 I can see the error isRemoving the shebang fixes the issue.
The text was updated successfully, but these errors were encountered: