diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-09 12:08:45 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-10-09 12:08:45 +0200 |
commit | 66de0d06e5b6c002cbc7d18e18685e3ea44d3848 (patch) | |
tree | 34688ee9d0c4d00de0f58e2f6f017f026a23abe6 /libbuild2/parser.cxx | |
parent | 09e0cf71552d7f6e4f864b997db9913b9e9ae187 (diff) |
Prepend pattern search paths to PATH when running binutils
This way any dependent tools (such as mt.exe that is invoked by link.exe)
are first search for in there.
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r-- | libbuild2/parser.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index b33ba78..6e15cf3 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -1568,12 +1568,13 @@ namespace build2 [] (const string& s) {return s.c_str ();}); cargs.push_back (nullptr); - process pr (run_start (3 /* verbosity */, + process pr (run_start (3 /* verbosity */, cargs, - 0 /* stdin */, - -1 /* stdout */, - true /* error */, - empty_dir_path /* cwd */, + 0 /* stdin */, + -1 /* stdout */, + true /* error */, + dir_path () /* cwd */, + nullptr /* env */, l)); bool bad (false); try |