forked from OSchip/llvm-project
[TSan] Fixup for r233038: restrict the -Wno-maybe-uninitialized flag to GCC only.
llvm-svn: 233042
This commit is contained in:
parent
e4e481fbc9
commit
58e4835779
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue