aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-05-16 04:03:44 +0200
committerSven Gothel <[email protected]>2022-05-16 04:03:44 +0200
commit956b0f57f09c89874b7da414aa82d2e09b01a615 (patch)
tree64463c6fb1743edf45f1ec2088d6e9b43716acdd
parent74c42554267241e7fcac072bfd7082c212b6ea62 (diff)
JaulibSetup.cmake: Also use 'no-rtti' for DEBUG build
-rw-r--r--JaulibSetup.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/JaulibSetup.cmake b/JaulibSetup.cmake
index 10b4446..12331eb 100644
--- a/JaulibSetup.cmake
+++ b/JaulibSetup.cmake
@@ -62,6 +62,7 @@ if(DEBUG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GCC_FLAGS_SANITIZE_THREAD}")
endif(CMAKE_COMPILER_IS_GNUCC)
endif(INSTRUMENTATION)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti")
elseif(GPROF)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -g -ggdb -pg -fno-rtti")
elseif(PERF_ANALYSIS)
@@ -85,6 +86,8 @@ if(DEBUG)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -no-pie")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -no-pie")
endif(CMAKE_COMPILER_IS_GNUCC)
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fno-rtti")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-rtti")
else()
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fno-rtti")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fno-rtti")