aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-10-16 13:02:10 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-10-16 13:02:10 +0200
commit8da6810950270a9fabd4e0d9c6ea6e214793d732 (patch)
tree48d8ae4157265c6b30fba4e2075a2d84ea53f5e8 /libbuild2/utility.hxx
parent5338cd3b93972c60ac90d4c2c5a640071f92d091 (diff)
Try to find MSVC installation for absolute cl.exe paths
Without this extra logic recursive invocation of the build system (e.g., in tests) will fail to obtain the full environment.
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r--libbuild2/utility.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx
index 956d213..beacd2f 100644
--- a/libbuild2/utility.hxx
+++ b/libbuild2/utility.hxx
@@ -222,12 +222,15 @@ namespace build2
const location& = location ());
LIBBUILD2_SYMEXPORT process_path
- try_run_search (const path&,
+ run_try_search (const path&,
bool init = false,
const dir_path& fallback = dir_path (),
bool path_only = false,
const char* paths = nullptr);
+ [[noreturn]] LIBBUILD2_SYMEXPORT void
+ run_search_fail (const path&, const location& = location ());
+
// Wait for process termination. Issue diagnostics and throw failed in case
// of abnormal termination. If the process has terminated normally but with
// a non-zero exit status, then, if error is true, assume the diagnostics