From 2a9204cab666d47770bf3809d95a689088019121 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 27 May 2020 15:27:57 +0200 Subject: Various minor fixes and cleanups --- libbuild2/script/run.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/script/run.cxx') 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 ()); -- cgit v1.1