[all-commits] [llvm/llvm-project] 88f8ab: [Flang-RT][OpenMP] Define _GLIBCXX_NO_ASSERTIONS (...
Michael Kruse via All-commits
all-commits at lists.llvm.org
Wed Aug 27 01:11:09 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 88f8ab01b5855bbd7375b7a3d83d9a78d77f3fdf
https://github.com/llvm/llvm-project/commit/88f8ab01b5855bbd7375b7a3d83d9a78d77f3fdf
Author: Michael Kruse <llvm-project at meinersbur.de>
Date: 2025-08-27 (Wed, 27 Aug 2025)
Changed paths:
M flang-rt/cmake/modules/AddFlangRT.cmake
M openmp/runtime/src/CMakeLists.txt
Log Message:
-----------
[Flang-RT][OpenMP] Define _GLIBCXX_NO_ASSERTIONS (#155440)
Since GCC 15.1, libstdc++ enabled assertions/hardening by default in
non-optimized (-O0) builds [1]. That is, _GLIBCXX_ASSERTIONS is defined
in the libstdc++ headers itself so defining/undefining it on the
compiler command line no longer has an effect in non-optimized builds.
As the commit message[2] suggests, define _GLIBCXX_NO_ASSERTIONS
instead.
For libstdc++ headers before 15.1, -U_GLIBCXX_ASSERTIONS still has to be
on the command line as well.
Defining _GLIBCXX_NO_ASSERTIONS was previously proposed in #152223
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112808
[2] https://github.com/gcc-mirror/gcc/commit/361d230fd7800a7e749aba8ed020f54f5c26d504
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list