summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksandr Urakov <aleksandr.urakov@jetbrains.com>2019-02-11 15:13:33 +0000
committerAleksandr Urakov <aleksandr.urakov@jetbrains.com>2019-02-11 15:13:33 +0000
commiteac19858e92fe977384db9a9bbc4c0968a7ec51f (patch)
treef4e46c6e7b5e251b5e460fe8afe9add35f53ee2b
parentd11fbf523d9ee55e1bc41556a61e3650ee2f35cc (diff)
downloadbcm5719-llvm-eac19858e92fe977384db9a9bbc4c0968a7ec51f.tar.gz
bcm5719-llvm-eac19858e92fe977384db9a9bbc4c0968a7ec51f.zip
[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
-rwxr-xr-xlldb/lit/helper/build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lldb/lit/helper/build.py b/lldb/lit/helper/build.py
index fd52b7db4b8..ec1e6356e43 100755
--- a/lldb/lit/helper/build.py
+++ b/lldb/lit/helper/build.py
@@ -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)
OpenPOWER on IntegriCloud