aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/c
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/c
parentcc57f3a59ed7e19d663ed77654de2a5e16e16875 (diff)
Add support for clang-cl
The compiler type is `msvc`, variant `clang`.
Diffstat (limited to 'libbuild2/c')
-rw-r--r--libbuild2/c/init.cxx16
1 files changed, 11 insertions, 5 deletions
diff --git a/libbuild2/c/init.cxx b/libbuild2/c/init.cxx
index 4d59eb2..bec20b5 100644
--- a/libbuild2/c/init.cxx
+++ b/libbuild2/c/init.cxx
@@ -220,11 +220,17 @@ namespace build2
v.insert<string> ("c.class"),
- v.insert<string> ("c.version"),
- v.insert<uint64_t> ("c.version.major"),
- v.insert<uint64_t> ("c.version.minor"),
- v.insert<uint64_t> ("c.version.patch"),
- v.insert<string> ("c.version.build"),
+ &v.insert<string> ("c.version"),
+ &v.insert<uint64_t> ("c.version.major"),
+ &v.insert<uint64_t> ("c.version.minor"),
+ &v.insert<uint64_t> ("c.version.patch"),
+ &v.insert<string> ("c.version.build"),
+
+ &v.insert<string> ("c.variant_version"),
+ &v.insert<uint64_t> ("c.variant_version.major"),
+ &v.insert<uint64_t> ("c.variant_version.minor"),
+ &v.insert<uint64_t> ("c.variant_version.patch"),
+ &v.insert<string> ("c.variant_version.build"),
v.insert<string> ("c.signature"),
v.insert<string> ("c.checksum"),