summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-09-13 23:45:11 +0000
committerZachary Turner <zturner@google.com>2016-09-13 23:45:11 +0000
commit471932de24b9445efc512e6bb7160099af4ad997 (patch)
tree856d83160bd9b77932101021d6a09c20d471eeb9 /lldb/packages/Python/lldbsuite/test
parentdea090e6b2b2bc050c30b77b96c7f5f6ee0b3d70 (diff)
downloadbcm5719-llvm-471932de24b9445efc512e6bb7160099af4ad997.tar.gz
bcm5719-llvm-471932de24b9445efc512e6bb7160099af4ad997.zip
Force c++14 when running tests on Windows.
VS 2015 and higher begin making use of c++14 in their standard library headers. As such, -std=c++11 makes it so you can't compile trivial programs. Bump this to -std=c++14 when this situation is detected. llvm-svn: 281420
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/make/Makefile.rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
index 3726826d4fd..910dc6737c7 100644
--- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
+++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules
@@ -303,6 +303,7 @@ ifeq "$(OS)" "Windows_NT"
CXXFLAGS += -D_HAS_EXCEPTIONS=0
ifeq "$(VisualStudioVersion)" "14.0"
CXXFLAGS += -fms-compatibility-version=19.0
+ override CXXFLAGS := $(subst -std=c++11,-std=c++14,$(CXXFLAGS))
endif
# The MSVC linker doesn't understand long section names
# generated by the clang compiler.
OpenPOWER on IntegriCloud