diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-07-18 13:31:20 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-07-18 14:59:53 +0300 |
commit | b895ba115548e1ae6d17e11f7c95a895195f0e94 (patch) | |
tree | 172c9fe7a80f223eb0cdca6abf7e762a53c43272 /bbot/worker | |
parent | f9048ed23d68c3a36060acd50c73c80d759c5a3f (diff) |
Adapt to non-optional task target
Diffstat (limited to 'bbot/worker')
-rw-r--r-- | bbot/worker/worker.cxx | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/bbot/worker/worker.cxx b/bbot/worker/worker.cxx index e3da1dd..a078498 100644 --- a/bbot/worker/worker.cxx +++ b/bbot/worker/worker.cxx @@ -426,20 +426,12 @@ startup () // Find the environment setup executable. // - string tg; - process_path pp; - - if (tm.target) - { - tg = tm.target->string (); - - // While the executable path contains a directory (so the PATH search - // does not apply) we still use process::path_search() to automatically - // handle appending platform-specific executable extensions (.exe/.bat, - // etc). - // - pp = process::try_path_search (env_dir / tg, false); - } + // While the executable path contains a directory (so the PATH search does + // not apply) we still use process::path_search() to automatically handle + // appending platform-specific executable extensions (.exe/.bat, etc). + // + string tg (tm.target.string ()); + process_path pp (process::try_path_search (env_dir / tg, false)); if (pp.empty ()) pp = process::try_path_search (env_dir / "default", false); |