aboutsummaryrefslogtreecommitdiff
path: root/bbot/worker/worker.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'bbot/worker/worker.cxx')
-rw-r--r--bbot/worker/worker.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx
index 90b429e..2105939 100644
--- a/bbot/worker/worker.cxx
+++ b/bbot/worker/worker.cxx
@@ -267,7 +267,7 @@ run_cmd (step_id step,
dr << '\n'
<< what << '\n'
<< " current dir: " << current_directory () << '\n'
- << " environment: " << ops.environment ();
+ << " environment: " << ops.env_script () << ' ' << ops.env_target ();
if (!last_cmd.empty ())
dr << '\n'
@@ -2161,6 +2161,8 @@ startup ()
//
strings os;
+ string tg (tm.target.string ());
+
// Use the name=value notation for options to minimize the number of
// arguments passed to the environment setup executable. Note that the
// etc/environments/default-*.bat scripts can only handle the limited
@@ -2175,7 +2177,8 @@ startup ()
if (ops.tftp_host_specified ())
os.push_back ("--tftp-host=" + ops.tftp_host ());
- os.push_back (string ("--environment=") + pp.effect_string ());
+ os.push_back (string ("--env-script=") + pp.effect_string ());
+ os.push_back ("--env-target=" + tg);
// Note that we use the effective (absolute) path instead of recall since
// we may have changed the CWD.
@@ -2191,7 +2194,6 @@ startup ()
// result manifest. There is no reason to retry (most likely there is
// nobody listening on the other end anymore).
//
- string tg (tm.target.string ());
switch (run_io_exit (trace, 0, 2, 2, pp, tg, argv0.effect_string (), os))
{
case 3: