Fix tests on Windows.
authorZachary Turner <zturner@google.com>
Tue, 6 Sep 2016 22:14:22 +0000 (22:14 +0000)
committerZachary Turner <zturner@google.com>
Tue, 6 Sep 2016 22:14:22 +0000 (22:14 +0000)
This wasn't actually a problem with the reformat, but rather a
problem with Visual Studio 2015 Update 3, which uses some c++14
features in its standard libraries.  So we had to change -std=c++11
to -std=c++14.

llvm-svn: 280759

lldb/packages/Python/lldbsuite/test/make/Makefile.rules

index 3726826..5eb8caa 100644 (file)
@@ -216,7 +216,7 @@ ifeq "$(MAKE_GMODULES)" "YES"
        CFLAGS += -fmodules -gmodules
 endif
 
-CXXFLAGS += -std=c++11
+CXXFLAGS += -std=c++14
 # FIXME: C++ modules aren't supported on all platforms.
 CXXFLAGS += $(subst -fmodules,, $(CFLAGS))
 LD = $(CC)
@@ -444,7 +444,7 @@ ifneq "$(filter g++,$(CXX))" ""
        ifeq "$(CXXVERSION)" "4.6"
                 # GCC 4.6 cannot handle -std=c++11, so replace it with -std=c++0x
                 # instead. FIXME: remove once GCC version is upgraded.
-               override CXXFLAGS := $(subst -std=c++11,-std=c++0x,$(CXXFLAGS))
+               override CXXFLAGS := $(subst -std=c++14,-std=c++0x,$(CXXFLAGS))
        endif
 endif
 endif