aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-05 14:10:23 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-05 14:10:23 +0200
commitc4832361e3c1ab4cc04051385cdd645954fed8d2 (patch)
treeb94292111d7504d84ed5f8f28c3eafc2c7def446
parent9598fc947ee3482d64f86ef36dd5eefda237344c (diff)
Fix bug in guess_clang_msvc()
-rw-r--r--libbuild2/cc/guess.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/cc/guess.cxx b/libbuild2/cc/guess.cxx
index 11d192d..9cfb1c8 100644
--- a/libbuild2/cc/guess.cxx
+++ b/libbuild2/cc/guess.cxx
@@ -1164,6 +1164,7 @@ namespace build2
cstrings args {xp.recall_string ()};
if (c_co != nullptr) append_options (args, *c_co);
if (x_co != nullptr) append_options (args, *x_co);
+ args.push_back ("-v");
args.push_back ("-x");
switch (xl)
{
@@ -1475,8 +1476,9 @@ namespace build2
//
// http://lists.llvm.org/pipermail/cfe-dev/2017-December/056240.html
//
- // So we have to sniff this information out (and a couple of other
- // useful bits like the VC installation directory and Platform SDK).
+ // So we have to sniff this information out from Clang's -v output
+ // (plus a couple of other useful bits like the VC installation
+ // directory and Platform SDK).
//
clang_msvc_info mi (guess_clang_msvc (xl, xp, c_co, x_co));