From 8da6810950270a9fabd4e0d9c6ea6e214793d732 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 16 Oct 2019 13:02:10 +0200 Subject: 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. --- libbuild2/utility.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libbuild2/utility.hxx') 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 -- cgit v1.1