aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-11 07:52:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-11 08:45:57 +0200
commit2fb22e7b4aedcb62bb3a4d868c311237f3537a2f (patch)
tree64f0ca37c91a78091f0daa3a53eded8f7996e867 /libbuild2/cxx
parentcc57f3a59ed7e19d663ed77654de2a5e16e16875 (diff)
Add support for clang-cl
The compiler type is `msvc`, variant `clang`.
Diffstat (limited to 'libbuild2/cxx')
-rw-r--r--libbuild2/cxx/init.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/libbuild2/cxx/init.cxx b/libbuild2/cxx/init.cxx
index 3345485..52f3f5a 100644
--- a/libbuild2/cxx/init.cxx
+++ b/libbuild2/cxx/init.cxx
@@ -505,11 +505,17 @@ namespace build2
v.insert<string> ("cxx.class"),
- v.insert<string> ("cxx.version"),
- v.insert<uint64_t> ("cxx.version.major"),
- v.insert<uint64_t> ("cxx.version.minor"),
- v.insert<uint64_t> ("cxx.version.patch"),
- v.insert<string> ("cxx.version.build"),
+ &v.insert<string> ("cxx.version"),
+ &v.insert<uint64_t> ("cxx.version.major"),
+ &v.insert<uint64_t> ("cxx.version.minor"),
+ &v.insert<uint64_t> ("cxx.version.patch"),
+ &v.insert<string> ("cxx.version.build"),
+
+ &v.insert<string> ("cxx.variant_version"),
+ &v.insert<uint64_t> ("cxx.variant_version.major"),
+ &v.insert<uint64_t> ("cxx.variant_version.minor"),
+ &v.insert<uint64_t> ("cxx.variant_version.patch"),
+ &v.insert<string> ("cxx.variant_version.build"),
v.insert<string> ("cxx.signature"),
v.insert<string> ("cxx.checksum"),