aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/guess.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/guess.cxx')
-rw-r--r--build2/cc/guess.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/build2/cc/guess.cxx b/build2/cc/guess.cxx
index 6ce46a2..919aeab 100644
--- a/build2/cc/guess.cxx
+++ b/build2/cc/guess.cxx
@@ -360,7 +360,13 @@ namespace build2
dr << info << "use config." << xm << " to override";
});
- xp = run_search (xc, false /* init */); // Note: cached.
+ // Only search in PATH (specifically, omitting the current
+ // executable's directory on Windows).
+ //
+ xp = run_search (xc,
+ false /* init */, // Note: result is cached.
+ dir_path () /* fallback */,
+ true /* path_only */);
}
using type = compiler_type;