From 66de0d06e5b6c002cbc7d18e18685e3ea44d3848 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 9 Oct 2019 12:08:45 +0200 Subject: 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. --- libbuild2/parser.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'libbuild2/parser.cxx') 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 -- cgit v1.1