aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/script/run.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/script/run.cxx')
-rw-r--r--libbuild2/script/run.cxx4
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 ());