-
Notifications
You must be signed in to change notification settings - Fork 310
make sure CFLAGS and MYCFLAGS are used in Lua easyblock #2062
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
Conversation
|
That would normally be done by adding pic: true in the toolchainopts |
@akesandgren that's also fine to me. I was not sure where to add it because several other easyblocks also add it unconditionally. |
|
this PR is still necessary because the toolchainopts are not picked up without adding CFLAGS. |
easybuild/easyblocks/l/lua.py
Outdated
| if LooseVersion(self.version) > LooseVersion('5.2'): | ||
| mycflags.append('-DLUA_COMPAT_5_2') | ||
| if LooseVersion(self.version) > LooseVersion('5.3'): | ||
| mycflags.append(os.getenv('CFLAGS', '')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this behind an if? It should be used in general?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in dda269b and re-tested with all existing Lua easyconfigs, works like a charm
boegel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
needed for ARGoS, to avoid compilation errors like this:
also added EB defined
CFLAGSand optionally user definedMYCFLAGS.tested with Lua-5.3.4 and Lua-5.3.5.