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

[gcc.py] Add extra flag to enable the build of the libstdcxx-backtrace library. #3538

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions easybuild/easyblocks/g/gcc.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def extra_options():
'withppl': [False, "Build GCC with PPL support", CUSTOM],
'withnvptx': [False, "Build GCC with NVPTX offload support", CUSTOM],
'withamdgcn': [False, "Build GCC with AMD GCN offload support", CUSTOM],
'with_cxx_backtrace': [False, "Build GCC with enabled stack trace for C++23", CUSTOM],
}
return ConfigureMake.extra_options(extra_vars)

Expand Down Expand Up @@ -643,6 +644,10 @@ def configure_step(self):
else:
self.configopts += " --disable-lto"

# enable builind of libstdc++_libbacktrace
if self.cfg['with_cxx_backtrace']:
self.configopts += " --enable-libstdcxx-backtrace"

# configure for a release build
self.configopts += " --enable-checking=release "
# enable multilib: allow both 32 and 64 bit
Expand Down