summaryrefslogtreecommitdiff
path: root/lib/tsan/rtl/Makefile.old
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2012-12-19 06:59:45 +0000
committerDmitry Vyukov <dvyukov@google.com>2012-12-19 06:59:45 +0000
commitb75c67b495ca13801cc629b2c2c9dd0010e54739 (patch)
treee0ba0df845b8f6ddb8a7e10edcda91d9e31d7149 /lib/tsan/rtl/Makefile.old
parentb1f21c69e02d99944c66e0520d07d8c14d99756f (diff)
downloadcompiler-rt-b75c67b495ca13801cc629b2c2c9dd0010e54739.tar.gz
compiler-rt-b75c67b495ca13801cc629b2c2c9dd0010e54739.tar.bz2
compiler-rt-b75c67b495ca13801cc629b2c2c9dd0010e54739.tar.xz
tsan: fix -Wgnu warnings
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/Makefile.old')
-rw-r--r--lib/tsan/rtl/Makefile.old5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/tsan/rtl/Makefile.old b/lib/tsan/rtl/Makefile.old
index 89ce8322..51da5bbf 100644
--- a/lib/tsan/rtl/Makefile.old
+++ b/lib/tsan/rtl/Makefile.old
@@ -1,6 +1,9 @@
CXXFLAGS = -fPIE -g -Wall -Werror -fno-builtin -DTSAN_DEBUG=$(DEBUG)
ifeq ($(DEBUG), 0)
- CXXFLAGS += -O3
+ CXXFLAGS += -O3
+endif
+ifeq ($(CXX), clang++)
+ CXXFLAGS+= -Wgnu
endif
# For interception. FIXME: move interception one level higher.