forked from OSchip/llvm-project
Make the LLDB test suite work with MSVC 2017 on Windows.
llvm-svn: 297405
This commit is contained in:
parent
10425de063
commit
30fdb05ddb
|
@ -300,10 +300,12 @@ 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
|
||||
override CXXFLAGS := $(subst -std=c++11,-std=c++14,$(CXXFLAGS))
|
||||
endif
|
||||
|
||||
# MSVC 2015 or higher is required, which depends on c++14, so
|
||||
# append these values unconditionally.
|
||||
CXXFLAGS += -fms-compatibility-version=19.0
|
||||
override CXXFLAGS := $(subst -std=c++11,-std=c++14,$(CXXFLAGS))
|
||||
|
||||
# The MSVC linker doesn't understand long section names
|
||||
# generated by the clang compiler.
|
||||
LDFLAGS += -fuse-ld=lld
|
||||
|
|
Loading…
Reference in New Issue