llvm.org GIT mirror llvm / 94bfd87
Merge from mainline. Probe for flags before using them to try to help compiling with compilers that don't support those flags. This hopefully will help gcc 3.X compile this code. http://llvm.org/PR3487 git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_25@64514 91177308-0d34-0410-b5e6-96231b3b80d8 Tanya Lattner 11 years ago
1 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
88
99 LEVEL := ../../..
1010 include $(LEVEL)/Makefile.config
11 NO_MISSING_FIELD_INITIALIZERS := $(shell $(CXX) -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers)
12 NO_VAROADIC_MACROS := $(shell $(CXX) -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros)
13
1114
1215 LIBRARYNAME = GoogleTest
1316 BUILD_ARCHIVE = 1
1417 CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include/
15 CPP.Flags += -Wno-missing-field-initializers -Wno-variadic-macros
18 CPP.Flags += $(NO_MISSING_FIELD_INITIALIZERS) $(NO_VAROADIC_MACROS)
1619
1720 include $(LEVEL)/Makefile.common