From b039ea49da74d4edb81e24ea2780c85388016430 Mon Sep 17 00:00:00 2001 From: maxim-masterov Date: Thu, 19 Dec 2024 10:21:06 +0100 Subject: [PATCH 1/2] Add a flag to enable stacktrace --- easybuild/easyblocks/g/gcc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/easybuild/easyblocks/g/gcc.py b/easybuild/easyblocks/g/gcc.py index 76562c4001..f5bfa04e40 100644 --- a/easybuild/easyblocks/g/gcc.py +++ b/easybuild/easyblocks/g/gcc.py @@ -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) @@ -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 From 8da933c8ab363752e81ba7c20f908c1f810e57a3 Mon Sep 17 00:00:00 2001 From: maxim-masterov Date: Thu, 19 Dec 2024 10:27:07 +0100 Subject: [PATCH 2/2] Remove trailing whitespace --- easybuild/easyblocks/g/gcc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/easybuild/easyblocks/g/gcc.py b/easybuild/easyblocks/g/gcc.py index f5bfa04e40..0434c84b7f 100644 --- a/easybuild/easyblocks/g/gcc.py +++ b/easybuild/easyblocks/g/gcc.py @@ -644,7 +644,7 @@ def configure_step(self): else: self.configopts += " --disable-lto" - # enable builind of libstdc++_libbacktrace + # enable builind of libstdc++_libbacktrace if self.cfg['with_cxx_backtrace']: self.configopts += " --enable-libstdcxx-backtrace"