forked from OSchip/llvm-project
[build.py] Add `-fms-compatibility-version=19` to `build.py`
Summary: `clang-cl` can't compile tests containing `char16_t` and `char32_t` types without the MSVC compatibility option passed. This patch adds the option to the `clang-cl` call in the `build.py` script by default. Reviewers: zturner, labath, stella.stamenova, serge-sans-paille Reviewed By: labath Subscribers: lldb-commits, leonid.mashinskiy Tags: #lldb Differential Revision: https://reviews.llvm.org/D57809 llvm-svn: 353709
This commit is contained in:
parent
d11fbf523d
commit
eac19858e9
|
@ -564,6 +564,7 @@ class MsvcBuilder(Builder):
|
|||
if self.toolchain_type == 'clang-cl':
|
||||
args.append('-Xclang')
|
||||
args.append('-fkeep-static-consts')
|
||||
args.append('-fms-compatibility-version=19')
|
||||
args.append('/c')
|
||||
|
||||
args.append('/Fo' + obj)
|
||||
|
|
Loading…
Reference in New Issue