[TSan] Fixup for r233038: restrict the -Wno-maybe-uninitialized flag to GCC only.

llvm-svn: 233042
This commit is contained in:
Alexey Samsonov 2015-03-23 23:44:38 +00:00
parent e4e481fbc9
commit 58e4835779
1 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,6 @@ CXXFLAGS = -std=c++11 -fPIE -fno-rtti -g -Wall -Werror \
-DGTEST_HAS_RTTI=0 -DSANITIZER_DEBUG=$(DEBUG)
CLANG=clang
FILECHECK=FileCheck
CXXFLAGS += -Wno-maybe-uninitialized
# Silence warnings that Clang produces for gtest code.
# Use -Wno-attributes so that gcc doesn't complain about unknown warning types.
CXXFLAGS += -Wno-attributes
@ -12,7 +11,9 @@ ifeq ($(DEBUG), 0)
CXXFLAGS += -O3
endif
ifeq ($(CXX), $(CLANG)++)
CXXFLAGS+= -Wno-unused-private-field -Wno-static-in-inline -Wgnu
CXXFLAGS += -Wno-unused-private-field -Wno-static-in-inline -Wgnu
else
CXXFLAGS += -Wno-maybe-uninitialized
endif
LIBTSAN=rtl/libtsan.a