From c4832361e3c1ab4cc04051385cdd645954fed8d2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 5 Oct 2019 14:10:23 +0200 Subject: Fix bug in guess_clang_msvc() --- libbuild2/cc/guess.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libbuild2/cc') 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)); -- cgit v1.1