aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2020-08-02 21:10:35 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2020-08-02 21:04:02 +0000
commitca04fe9e7c795b0b5e5afd52a76ebaabd056f2c2 (patch)
treecfcadfcc2696c28041d6e9509be066ba115c04a3
parent90fdd5d006dac3960cedc993a6808d3c06add1e6 (diff)
baremetal: Use checking on host OS in SDCC workaround
... because using target OS has not sense for a bare-metal toolchain. Change-Id: I266a11a3de62443b9a4b5aef88707cc4ddfd0635 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
-rw-r--r--share/qbs/modules/cpp/sdcc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/sdcc.js b/share/qbs/modules/cpp/sdcc.js
index 2b544d27c..49d74cb63 100644
--- a/share/qbs/modules/cpp/sdcc.js
+++ b/share/qbs/modules/cpp/sdcc.js
@@ -555,7 +555,7 @@ function prepareCompiler(project, product, inputs, outputs, input, output, expli
// * https://sourceforge.net/p/sdcc/bugs/2970/
// We need to replace the '\r\n\' line endings with the'\n' line
// endings for each generated object file.
- var isWindows = input.qbs.targetOS.contains("windows");
+ var isWindows = input.qbs.hostOS.contains("windows");
if (isWindows) {
cmd = new JavaScriptCommand();
cmd.objectPath = outputs.obj[0].filePath;