-
Notifications
You must be signed in to change notification settings - Fork 2
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
The AWK script might not be portable? #1
Comments
@Nomarian, could you please tell us more about what system you're using? Is it not GNU Awk? I'm not sure it would be the best idea to switch this to a Lua script, because needing Lua to build the custom Lua is a bit of a chicken-egg problem. Perhaps it would be simpler to provide tarballs that already contain the generated luacore.h? Is there an easy/automated way to do that on Github? |
The solution is changing BEGINFILE to FNR==1, I've attached a diff on some other changes. I'm also a bit worried about get-lua-core-h.awk being mentioned twice in the make output.
I should mention, pallene builds succesfully, its only when you { pallenenc script.pln } that it fails. even when you --emit-c |
perhaps using a lua script is a no, considering building pallene when you already have lua installed is slightly more complicated (luarocks does not accept --with-lua correctly but that's another matter) |
FWIW, BEGINFILE only exists in gawk, not even busybox awk or goawk have it. |
Does changing to FNR==1 fix that failure you're having?
Basically, we want to tell make to regenerate luacore.h if either the AWK script or any of the core headers change. Furthermore, the script wants to receive the list of core header files. Currently we're passing the whole |
I had an idea... @Nomarian, could you please check if that PR helps? |
Compiles and its even better than using FNR==1 |
pallene-lang/pallene#516 (comment)
The text was updated successfully, but these errors were encountered: