Update TestVBool Makefile to allow building test program with gcc
authorDaniel Malea <daniel.malea@intel.com>
Tue, 19 Feb 2013 15:53:47 +0000 (15:53 +0000)
committerDaniel Malea <daniel.malea@intel.com>
Tue, 19 Feb 2013 15:53:47 +0000 (15:53 +0000)
- do not pass (incompatible option) -stdlib=libstdc++ option if using GCC as test compiler

llvm-svn: 175522

lldb/test/functionalities/data-formatter/data-formatter-stl/libstdcpp/vbool/Makefile

index 3b26f43..e6e6101 100644 (file)
@@ -4,5 +4,8 @@ CXX_SOURCES := main.cpp
 
 include $(LEVEL)/Makefile.rules
 
-CXXFLAGS += -stdlib=libstdc++ -O0
+CXXFLAGS += -O0
+ifeq (,$(findstring gcc,$(CC)))
+CXXFLAGS += -stdlib=libstdc++
 LDFLAGS += -stdlib=libstdc++
+endif