aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/sdcc.js
diff options
context:
space:
mode:
Diffstat (limited to 'share/qbs/modules/cpp/sdcc.js')
-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;