aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/cc/guess.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-11 11:36:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-11 11:36:56 +0200
commit19e1b71a396e6b82c8e8a4602446ada0173579b9 (patch)
tree5a8c4cf56ba7afdc6041cf5e083fbb20f07361e6 /libbuild2/cc/guess.cxx
parent2388953dffb456b6905d789fa85186810bccaae3 (diff)
Various fixes to make clang-cl work
Note that clang-cl's /showInclude output differs from cl's in the face of missing headers. In particular, it does not issue C1083 that we expect. As a result, this part of clang-cl's support is currently non-functional (the rest seems to work, however).
Diffstat (limited to 'libbuild2/cc/guess.cxx')
-rw-r--r--libbuild2/cc/guess.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbuild2/cc/guess.cxx b/libbuild2/cc/guess.cxx
index cf78774..7b993f0 100644
--- a/libbuild2/cc/guess.cxx
+++ b/libbuild2/cc/guess.cxx
@@ -1822,7 +1822,7 @@ namespace build2
return compiler_info {
move (gr.path),
move (gr.id),
- compiler_class::gcc,
+ cl ? compiler_class::msvc : compiler_class::gcc,
move (ver),
move (var_ver),
move (gr.signature),