diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-08-29 00:13:11 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-08-29 00:13:11 +0000 |
commit | c1c9d5818f2afe8083ccd02958329e1a16154d56 (patch) | |
tree | 3012476be817ad532637938f8a8fb6d034871e5a /compiler-rt/lib/interception | |
parent | fc935166425dde180c271bac67f4ed8c1418a9a6 (diff) | |
download | bcm5719-llvm-c1c9d5818f2afe8083ccd02958329e1a16154d56.tar.gz bcm5719-llvm-c1c9d5818f2afe8083ccd02958329e1a16154d56.zip |
Some flag cleanup for the sanitizer runtimes.
This hoists most of the CFLAGS into a common variable. It also adds
detection for -Wno-c99-extensions and uses it to silence a pile of
warnings.
Finally, it switches to the proper flag -rdynamic.
With this, the cmake build is warning free on my bootstrap Linux build.
llvm-svn: 162809
Diffstat (limited to 'compiler-rt/lib/interception')
-rw-r--r-- | compiler-rt/lib/interception/CMakeLists.txt | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/compiler-rt/lib/interception/CMakeLists.txt b/compiler-rt/lib/interception/CMakeLists.txt index 55046e91a28..27e0452f363 100644 --- a/compiler-rt/lib/interception/CMakeLists.txt +++ b/compiler-rt/lib/interception/CMakeLists.txt @@ -13,16 +13,7 @@ if (APPLE) list(APPEND INTERCEPTION_SOURCES mach_override/mach_override.c) endif () -set(INTERCEPTION_CFLAGS - -O3 - -fPIC - -fno-exceptions - -funwind-tables - -fvisibility=hidden - ) -if(SUPPORTS_NO_VARIADIC_MACROS_FLAG) - list(APPEND INTERCEPTION_CFLAGS -Wno-variadic-macros) -endif() +set(INTERCEPTION_CFLAGS -O3 ${SANITIZER_COMMON_CFLAGS}) if(APPLE) # Build universal binary on APPLE. |