[Lldb-commits] [lldb] r281420 - Force c++14 when running tests on Windows.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 13 16:45:11 PDT 2016
Author: zturner
Date: Tue Sep 13 18:45:11 2016
New Revision: 281420
URL: http://llvm.org/viewvc/llvm-project?rev=281420&view=rev
Log:
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.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules
Modified: lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules?rev=281420&r1=281419&r2=281420&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules Tue Sep 13 18:45:11 2016
@@ -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.
More information about the lldb-commits
mailing list