diff --git a/polly/CMakeLists.txt b/polly/CMakeLists.txt index 22a0d20356db..e6d53cf19f32 100644 --- a/polly/CMakeLists.txt +++ b/polly/CMakeLists.txt @@ -53,6 +53,8 @@ if (CMAKE_COMPILER_IS_GNUCXX) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-common -Woverloaded-virtual -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fno-exceptions -fno-rtti") endif () +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-exceptions -fno-rtti") + # Add path for custom modules set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${POLLY_SOURCE_DIR}/cmake") diff --git a/polly/Makefile.config.in b/polly/Makefile.config.in index d4f24d1c4888..197a3aa113cd 100755 --- a/polly/Makefile.config.in +++ b/polly/Makefile.config.in @@ -26,6 +26,8 @@ ifeq (@GXX@,yes) POLLY_CXXFLAGS := "-fno-common -Woverloaded-virtual -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings" endif +POLLY_CXXFLAGS += "-fno-rtti -fno-exceptions" + # Do us work with scoplib? OPENSCOP_FOUND := @openscop_found@ SCOPLIB_FOUND := @scoplib_found@