Skip to content

Commit 0c61834

Browse files
authored
Only use --enable-libstdcxx-backtrace=yes for GCC 12 and 13 (#34)
It's enabled automatically for GCC 14 and later: https://gcc.gnu.org/gcc-14/changes.html#libstdcxx Also fix the name of the <stacktrace> header (which is implemented in terms of libbacktrace).
1 parent cfc133c commit 0c61834

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

build/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ else
181181
if [[ "${MAJOR}" -gt 4 ]] || [[ "${MAJOR}" -eq 4 && "${MINOR}" -ge 7 ]]; then LANGUAGES=${LANGUAGES},go; fi
182182
if [[ "${MAJOR}" -ge 9 ]]; then LANGUAGES=${LANGUAGES},d; fi
183183

184-
# Need this explicit flag for enabling <backtrace> support.
184+
# Need this explicit flag for enabling <stacktrace> support in GCC 12 and 13.
185185
# See https://github.com/compiler-explorer/compiler-explorer/issues/6103
186-
if [[ "${MAJOR}" -ge 12 ]]; then CONFIG+=" --enable-libstdcxx-backtrace=yes"; fi
186+
if [[ "${MAJOR}" -eq 12 ]] || [[ "${MAJOR}" -eq 13 ]]; then CONFIG+=" --enable-libstdcxx-backtrace=yes"; fi
187187

188188
# Languages introduced in 13
189189
if [[ "${MAJOR}" -ge 13 ]]; then LANGUAGES=${LANGUAGES},m2; fi

0 commit comments

Comments
 (0)