[llvm-commits] [polly] r134180 - in /polly/trunk: CMakeLists.txt Makefile.config.in

Tobias Grosser grosser at fim.uni-passau.de
Thu Jun 30 12:50:04 PDT 2011


Author: grosser
Date: Thu Jun 30 14:50:04 2011
New Revision: 134180

URL: http://llvm.org/viewvc/llvm-project?rev=134180&view=rev
Log:
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.

Modified:
    polly/trunk/CMakeLists.txt
    polly/trunk/Makefile.config.in

Modified: polly/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/CMakeLists.txt?rev=134180&r1=134179&r2=134180&view=diff
==============================================================================
--- polly/trunk/CMakeLists.txt (original)
+++ polly/trunk/CMakeLists.txt Thu Jun 30 14:50:04 2011
@@ -53,6 +53,8 @@
   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")
 

Modified: polly/trunk/Makefile.config.in
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/Makefile.config.in?rev=134180&r1=134179&r2=134180&view=diff
==============================================================================
--- polly/trunk/Makefile.config.in (original)
+++ polly/trunk/Makefile.config.in Thu Jun 30 14:50:04 2011
@@ -26,6 +26,8 @@
 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@





More information about the llvm-commits mailing list