Skip to content

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
boegel merged 10 commits intoeasybuilders:5.0.xfrom
Micket:defaultdebug
Dec 11, 2024
Merged

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
boegel merged 10 commits intoeasybuilders:5.0.xfrom
Micket:defaultdebug

Conversation

@Micket
Copy link
Copy Markdown
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
Copy Markdown
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
Comment thread easybuild/tools/options.py Outdated
Comment thread easybuild/tools/toolchain/compiler.py Outdated
Comment thread easybuild/tools/toolchain/compiler.py
Comment thread easybuild/tools/options.py Outdated
@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants