From 7c7cd5c27bd92e5b837c33edb97fa3f0a0d9ad79 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 21 Aug 2018 10:39:22 +0200 Subject: Unset CL and _CL_ environment variables when detecting MSVC --- build2/utility.hxx | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'build2/utility.hxx') diff --git a/build2/utility.hxx b/build2/utility.hxx index 0beec2e..cc34d59 100644 --- a/build2/utility.hxx +++ b/build2/utility.hxx @@ -187,7 +187,7 @@ namespace build2 // process run_start (uint16_t verbosity, - const process_path&, + const process_env&, // Implicit-constructible from process_path. const char* args[], int in, int out, @@ -196,7 +196,7 @@ namespace build2 const location& = location ()); inline process - run_start (const process_path& pp, + run_start (const process_env& pe, // Implicit-constructible from process_path. const char* args[], int in, int out, @@ -204,7 +204,7 @@ namespace build2 const dir_path& cwd = dir_path (), const location& l = location ()) { - return run_start (verb_never, pp, args, in, out, error, cwd, l); + return run_start (verb_never, pe, args, in, out, error, cwd, l); } inline void @@ -292,7 +292,7 @@ namespace build2 template T run (uint16_t verbosity, - const process_path&, + const process_env&, // Implicit-constructible from process_path. const char* args[], F&&, bool error = true, @@ -301,7 +301,7 @@ namespace build2 template inline T - run (const process_path& pp, + run (const process_env& pe, // Implicit-constructible from process_path. const char* args[], F&& f, bool error = true, @@ -309,7 +309,7 @@ namespace build2 sha256* checksum = nullptr) { return run ( - verb_never, pp, args, forward (f), error, ignore_exit, checksum); + verb_never, pe, args, forward (f), error, ignore_exit, checksum); } template @@ -345,15 +345,15 @@ namespace build2 template inline T run (uint16_t verbosity, - const process_path& pp, + const process_env& pe, // Implicit-constructible from process_path. F&& f, bool error = true, bool ignore_exit = false, sha256* checksum = nullptr) { - const char* args[] = {pp.recall_string (), nullptr}; + const char* args[] = {pe.path->recall_string (), nullptr}; return run ( - verbosity, pp, args, forward (f), error, ignore_exit, checksum); + verbosity, pe, args, forward (f), error, ignore_exit, checksum); } // run @@ -376,16 +376,16 @@ namespace build2 template inline T run (uint16_t verbosity, - const process_path& pp, + const process_env& pe, // Implicit-constructible from process_path. const char* arg, F&& f, bool error = true, bool ignore_exit = false, sha256* checksum = nullptr) { - const char* args[] = {pp.recall_string (), arg, nullptr}; + const char* args[] = {pe.path->recall_string (), arg, nullptr}; return run ( - verbosity, pp, args, forward (f), error, ignore_exit, checksum); + verbosity, pe, args, forward (f), error, ignore_exit, checksum); } // Empty/nullopt string, path, and project name. -- cgit v1.1