forked from OSchip/llvm-project
Buildsystem: Add -no-rtti
Build Polly without run time type info (rtti), as otherwise Polly cannot be loaded into a LLVM that is built without rtti. llvm-svn: 134180
This commit is contained in:
parent
97fb5acf48
commit
080307119e
|
@ -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")
|
||||
|
||||
|
|
|
@ -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@
|
||||
|
|
Loading…
Reference in New Issue