diff options
author | Zachary Turner <zturner@google.com> | 2015-11-19 19:10:54 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-11-19 19:10:54 +0000 |
commit | 7aac24805bdcb5e2d1c47d09a92e43da89eabcfb (patch) | |
tree | 71374d96dcb91b6c571f6fabcab0ded479b33731 /lldb/packages/Python/lldbsuite/test | |
parent | 4bc5ad4c37483fc250e936189b90fc6682df1b35 (diff) | |
download | bcm5719-llvm-7aac24805bdcb5e2d1c47d09a92e43da89eabcfb.tar.gz bcm5719-llvm-7aac24805bdcb5e2d1c47d09a92e43da89eabcfb.zip |
Pass -fms-compatibility-version when building test inferiors.
-fms-compatibility-version defaults to VS 2013. When using
VS 2015, this will lead to compilation failures of the test
inferiors in the C++ standard library for language conformance
reasons.
The fix here is to simply pass -fms-compatibility-version=19.0 when
we detect that a VS 2015 compiler is present. Even though we're
actually using clang to do the compilation, clang uses this same
detection algorithm to determine the location of the standard
library. So this check is tantanmount to saying "If clang is going
to find MSVC 2015's standard library, then pass 19.0 for
-fms-compatibility-version.
llvm-svn: 253589
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/make/Makefile.rules | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules index 42a0dc1f878..451009d7617 100644 --- a/lldb/packages/Python/lldbsuite/test/make/Makefile.rules +++ b/lldb/packages/Python/lldbsuite/test/make/Makefile.rules @@ -253,6 +253,9 @@ ifeq "$(OS)" "Windows_NT" # Clang for Windows doesn't support C++ Exceptions CXXFLAGS += -fno-exceptions CXXFLAGS += -D_HAS_EXCEPTIONS=0 + ifeq "$(VisualStudioVersion)" "14.0" + CXXFLAGS += -fms-compatibility-version=19.0 + endif # The MSVC linker doesn't understand long section names # generated by the clang compiler. LDFLAGS += -fuse-ld=lld |