summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/interception
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-06-28 13:12:07 +0000
committerAlexey Samsonov <samsonov@google.com>2012-06-28 13:12:07 +0000
commit3fe0d4d9aac48708260f1e44e675b30cc3baa304 (patch)
tree95429327f558618bd4da13f3f89dcecebdcddaa2 /compiler-rt/lib/interception
parentb4edab5a6b4067c82614fdb9ec40597b8d16fa9c (diff)
downloadbcm5719-llvm-3fe0d4d9aac48708260f1e44e675b30cc3baa304.tar.gz
bcm5719-llvm-3fe0d4d9aac48708260f1e44e675b30cc3baa304.zip
[ASan] silence various warnings in cmake build of asan unit tests
llvm-svn: 159347
Diffstat (limited to 'compiler-rt/lib/interception')
-rw-r--r--compiler-rt/lib/interception/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler-rt/lib/interception/CMakeLists.txt b/compiler-rt/lib/interception/CMakeLists.txt
index c0dd0dbd159..033b05fc1b3 100644
--- a/compiler-rt/lib/interception/CMakeLists.txt
+++ b/compiler-rt/lib/interception/CMakeLists.txt
@@ -14,6 +14,9 @@ if (APPLE)
endif ()
set(INTERCEPTION_CFLAGS "-fPIC -fno-exceptions -funwind-tables -fvisibility=hidden")
+if (SUPPORTS_NO_VARIADIC_MACROS_FLAG)
+ set(INTERCEPTION_CFLAGS "${INTERCEPTION_CFLAGS} -Wno-variadic-macros")
+endif ()
set(INTERCEPTION_COMMON_DEFINITIONS
INTERCEPTION_HAS_EXCEPTIONS=1)
OpenPOWER on IntegriCloud