diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-27 15:27:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-05-27 15:44:40 +0200 |
commit | 2a9204cab666d47770bf3809d95a689088019121 (patch) | |
tree | 32730291f7e6de8ef0a227905520dd66fb4ec0f3 /libbuild2/script/run.cxx | |
parent | d6581aa9be74e83cc689bfdaae9aaf2e78287975 (diff) |
Various minor fixes and cleanups
Diffstat (limited to 'libbuild2/script/run.cxx')
-rw-r--r-- | libbuild2/script/run.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbuild2/script/run.cxx b/libbuild2/script/run.cxx index 64286fd..38436b9 100644 --- a/libbuild2/script/run.cxx +++ b/libbuild2/script/run.cxx @@ -192,7 +192,7 @@ namespace build2 // For targets other than Windows leave the string intact. // - if (env.platform.class_ != "windows") + if (env.host.class_ != "windows") return s; // Convert forward slashes to Windows path separators (escape for @@ -335,7 +335,7 @@ namespace build2 // Ignore Windows newline fluff if that's what we are running on. // - if (env.platform.class_ == "windows") + if (env.host.class_ == "windows") args.push_back ("--strip-trailing-cr"); args.push_back (eop.string ().c_str ()); |