From ca04fe9e7c795b0b5e5afd52a76ebaabd056f2c2 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Sun, 2 Aug 2020 21:10:35 +0300 Subject: 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 --- share/qbs/modules/cpp/sdcc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3