-
Notifications
You must be signed in to change notification settings - Fork 312
Force openfoam only use Opt build type #3591
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
base: develop
Are you sure you want to change the base?
Force openfoam only use Opt build type #3591
Conversation
|
Not much description here. I'm guessing this is to make it consistent with the meaning of "debug" in toolchain options? I.e. debug is supposed to mean only debug symbols, not a debug build. Ideally, the easyblock should respect lowopt/noopt options that should reflect a debug type build scenario, though i suppoe the old code in the easyblock didn't do that either? |
| self.build_type = 'Debug' | ||
| else: | ||
| self.build_type = 'Opt' | ||
| # Always set build type to Opt, let easybuild decide CFLAGS and CXXFLAGS |
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.
Hmm, I don't see a need for this, especially in EasyBuild 5.0 where we have a global setting to determine the value of the debug toolchain option (which is disabled by default).
What's the motivation for this exactly?
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.
if self.toolchain.options['debug']:
self.build_type = 'Debug'
is just wrong logic. self.toolchain.options['debug'] means "enable_debug_symbols"
if self.toolchain.options['noopt']:
self.build_type = 'Debug'
would be appropriate.
|
Since EB5 uses debug symbol in toolchains by default. The original OpenFOAM easyblock captures the value and sets the build type to 'debug' and use the build-in debug flags such as the c++Debug file: I think here are two problems:
To summary, the PR would like to force EB always use Opt case as this is the only one which passes the EB environment variables into their wmake in current openfoam easyblock |
|
@appolloford I changed to target branch in this PR from |
|
I don't think anything in this PR is affected by the synchronization. |
(created using
eb --new-pr)