[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:
Aleksandr Urakov 2019-02-11 15:13:33 +00:00
parent d11fbf523d
commit eac19858e9
1 changed files with 1 additions and 0 deletions

View File

@ -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)