[llvm-commits] [compiler-rt] r159435 - /compiler-rt/trunk/lib/tsan/Makefile.old

Dmitry Vyukov dvyukov at google.com
Fri Jun 29 09:37:50 PDT 2012


Author: dvyukov
Date: Fri Jun 29 11:37:49 2012
New Revision: 159435

URL: http://llvm.org/viewvc/llvm-project?rev=159435&view=rev
Log:
tsan: use -Wno-unused-private-field only for clang (gcc does not understand it)

Modified:
    compiler-rt/trunk/lib/tsan/Makefile.old

Modified: compiler-rt/trunk/lib/tsan/Makefile.old
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/Makefile.old?rev=159435&r1=159434&r2=159435&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/Makefile.old (original)
+++ compiler-rt/trunk/lib/tsan/Makefile.old Fri Jun 29 11:37:49 2012
@@ -3,11 +3,13 @@
 CXXFLAGS = -fPIE -g -Wall -Werror -DTSAN_DEBUG=$(DEBUG)
 # Silence warnings that Clang produces for gtest code.
 # Use -Wno-attributes so that gcc doesn't complain about unknown warning types.
-CXXFLAGS += -Wno-unused-private-field -Wno-static-in-inline -Wno-attributes
+CXXFLAGS += -Wno-static-in-inline -Wno-attributes
 ifeq ($(DEBUG), 0)
 	CXXFLAGS += -O3
 endif
-
+ifeq ($(CXX), clang++)
+  CXXFLAGS+= -Wno-unused-private-field
+endif
 
 LIBTSAN=rtl/libtsan.a
 GTEST_ROOT=third_party/googletest





More information about the llvm-commits mailing list