[llvm-commits] [compiler-rt] r159032 - /compiler-rt/trunk/lib/CMakeLists.txt

Chandler Carruth chandlerc at gmail.com
Fri Jun 22 14:09:10 PDT 2012


Author: chandlerc
Date: Fri Jun 22 16:09:10 2012
New Revision: 159032

URL: http://llvm.org/viewvc/llvm-project?rev=159032&view=rev
Log:
Reorder these things for clarity, and add -std=c99 to the compile flags.

Modified:
    compiler-rt/trunk/lib/CMakeLists.txt

Modified: compiler-rt/trunk/lib/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/CMakeLists.txt?rev=159032&r1=159031&r2=159032&view=diff
==============================================================================
--- compiler-rt/trunk/lib/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/CMakeLists.txt Fri Jun 22 16:09:10 2012
@@ -1,3 +1,10 @@
+# First, add the subdirectories which contain feature-based runtime libraries.
+add_subdirectory(sanitizer_common)
+add_subdirectory(asan)
+
+# FIXME: Add support for the profile library.
+
+
 # The top-level lib directory contains a large amount of C code which provides
 # generic implementations of the core runtime library along with optimized
 # architecture-specific code in various subdirectories.
@@ -142,7 +149,7 @@
     x86_64/floatundixf.S
     ${GENERIC_SOURCES}
     )
-  set_target_properties(clang_rt.x86_64 PROPERTIES COMPILE_FLAGS "${TARGET_X86_64_CFLAGS}")
+  set_target_properties(clang_rt.x86_64 PROPERTIES COMPILE_FLAGS "-std=c99 ${TARGET_X86_64_CFLAGS}")
 endif()
 if(CAN_TARGET_I386)
   add_library(clang_rt.i386 STATIC
@@ -162,12 +169,5 @@
     i386/umoddi3.S
     ${GENERIC_SOURCES}
     )
-  set_target_properties(clang_rt.i386 PROPERTIES COMPILE_FLAGS "${TARGET_I386_CFLAGS}")
+  set_target_properties(clang_rt.i386 PROPERTIES COMPILE_FLAGS "-std=c99 ${TARGET_I386_CFLAGS}")
 endif()
-
-# Also support building feature-based runtime libraries in their various
-# subdircetories.
-add_subdirectory(sanitizer_common)
-add_subdirectory(asan)
-
-# FIXME: Add support for the profile library.





More information about the llvm-commits mailing list