Skip to content
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

add --keep-debug-symbols configuration option to set default value of 'debug' toolchain option, and enable it by default so -g is included in $CXXFLAGS & co #4688

Merged
merged 10 commits into from
Dec 11, 2024

Conversation

Micket
Copy link
Contributor

@Micket Micket commented Oct 22, 2024

Also defaults to "true" as was discussed for 5.0.x.
Those concerned with disk space can consider switching this back to false.

Disclaimer: It's getting late and I'm really not sure if i can get away with inserting the default value of "debug" in the compiler option map like that. Not sure if build_option is guaranteed to be initialized when that static dict is defined.

@Micket Micket added this to the 5.0 milestone Oct 22, 2024
…iler object.

This needs to be deferred due to how easybuild will need to be able to import the class before
build_option is ready.

The command line option has been changed to a flag, as optparse can't deal with bool types.
@Micket
Copy link
Contributor Author

Micket commented Oct 31, 2024

OK the optparser thing won't permit setting bools in any way. Listing options they get converted to strings, which is ugly to work with, and optparse doesn't support bool types for selection. So it's a enabling flag instead.

Also, due to how classes are sneakily initialized by EB, the static class variables aren't always defined, so, they might be None. As existing codes just if self.xxxx is not None: then I guess i'll just do the same.

@boegel boegel changed the title Add global option to set default toolchain option of "debug" Add global option to set default toolchain option of "debug", and enable it by default Nov 6, 2024
@boegel boegel added the EasyBuild-5.0 EasyBuild 5.0 label Nov 6, 2024
easybuild/tools/options.py Outdated Show resolved Hide resolved
easybuild/tools/toolchain/compiler.py Outdated Show resolved Hide resolved
easybuild/tools/toolchain/compiler.py Show resolved Hide resolved
easybuild/tools/options.py Outdated Show resolved Hide resolved
@Micket Micket requested a review from boegel December 11, 2024 15:31
@boegel boegel changed the title Add global option to set default toolchain option of "debug", and enable it by default Add global option to set default toolchain option of "debug", and enable it by default so -g is included in $CXXFLAGS & co Dec 11, 2024
@boegel boegel changed the title Add global option to set default toolchain option of "debug", and enable it by default so -g is included in $CXXFLAGS & co add --keep-debug-symbols configuration option to set default value of 'debug' toolchain option, and enable it by default so -g is included in $CXXFLAGS & co Dec 11, 2024
@boegel boegel enabled auto-merge December 11, 2024 16:38
@boegel boegel merged commit 66f8df3 into easybuilders:5.0.x Dec 11, 2024
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Changed default
Development

Successfully merging this pull request may close these issues.

2 participants