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

Alexander Potapenko glider at google.com
Wed Sep 12 08:44:56 PDT 2012


Author: glider
Date: Wed Sep 12 10:44:56 2012
New Revision: 163717

URL: http://llvm.org/viewvc/llvm-project?rev=163717&view=rev
Log:
Pass -std=c99 when compiling mach_override.c

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

Modified: compiler-rt/trunk/lib/interception/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/interception/CMakeLists.txt?rev=163717&r1=163716&r2=163717&view=diff
==============================================================================
--- compiler-rt/trunk/lib/interception/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/interception/CMakeLists.txt Wed Sep 12 10:44:56 2012
@@ -6,11 +6,16 @@
   interception_win.cc
   )
 
+set(MACH_OVERRIDE_SOURCES
+  mach_override/mach_override.c
+  )
+
 # Only add this C file if we're building on a Mac. Other source files can be
 # harmlessly compiled on any platform, but the C file is complained about due
 # to pedantic rules about empty translation units.
 if (APPLE)
-  list(APPEND INTERCEPTION_SOURCES mach_override/mach_override.c)
+  list(APPEND INTERCEPTION_SOURCES ${MACH_OVERRIDE_SOURCES})
+  set_source_files_properties(${MACH_OVERRIDE_SOURCES} PROPERTIES COMPILE_FLAGS "-std=c99 ${INTERCEPTION_CFLAGS}")
 endif ()
 
 set(INTERCEPTION_CFLAGS ${SANITIZER_COMMON_CFLAGS})





More information about the llvm-commits mailing list