aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/common.hxx
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/cc/common.hxx
parentcc57f3a59ed7e19d663ed77654de2a5e16e16875 (diff)
Add support for clang-cl
The compiler type is `msvc`, variant `clang`.
Diffstat (limited to 'libbuild2/cc/common.hxx')
-rw-r--r--libbuild2/cc/common.hxx20
1 files changed, 15 insertions, 5 deletions
diff --git a/libbuild2/cc/common.hxx b/libbuild2/cc/common.hxx
index d32d945..68546f6 100644
--- a/libbuild2/cc/common.hxx
+++ b/libbuild2/cc/common.hxx
@@ -102,11 +102,21 @@ namespace build2
const variable& x_class;
- const variable& x_version;
- const variable& x_version_major;
- const variable& x_version_minor;
- const variable& x_version_patch;
- const variable& x_version_build;
+ // Note: must be adjacent (used as an array).
+ //
+ const variable* x_version;
+ const variable* x_version_major;
+ const variable* x_version_minor;
+ const variable* x_version_patch;
+ const variable* x_version_build;
+
+ // Note: must be adjacent (used as an array).
+ //
+ const variable* x_variant_version;
+ const variable* x_variant_version_major;
+ const variable* x_variant_version_minor;
+ const variable* x_variant_version_patch;
+ const variable* x_variant_version_build;
const variable& x_signature;
const variable& x_checksum;