We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b69343a commit 8555355Copy full SHA for 8555355
1 file changed
CMakeLists.txt
@@ -90,6 +90,12 @@ if (NOT WIN32)
90
add_compile_options(-Wall -Wextra -pedantic -Wvolatile)
91
endif ()
92
93
+# Disable dead store and dead code elimination when using GCC 15 or newer. This may be a
94
+# compiler bug. "rtest" segfaults when these optimizations are enabled.
95
+if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "15")
96
+ add_compile_options(-fno-tree-dce -fno-tree-dse)
97
+endif()
98
+
99
if (MSVC)
100
add_definitions(
101
# forcing value to bool 'true' or 'false' (performance warning)
0 commit comments