summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2019-09-26 18:18:06 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2019-09-30 16:26:41 +0000
commitde2a49bb6d90ac5bcd414a3a30cce7db212e0c80 (patch)
tree2365c0204a288ee5b839666ca3591e0e517b7d7a
parentaec975a3f95f905b2d63ea1500ace28eddea7b9e (diff)
baremetal: Handle missed 'driverLinkerFlags' property for SDCC
Change-Id: Ibd58a4bdf6c05af79c0d847ccaacaec5381b35d5 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--share/qbs/modules/cpp/sdcc.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/qbs/modules/cpp/sdcc.js b/share/qbs/modules/cpp/sdcc.js
index 9e7c8097e..c84ec0f5d 100644
--- a/share/qbs/modules/cpp/sdcc.js
+++ b/share/qbs/modules/cpp/sdcc.js
@@ -332,7 +332,9 @@ function linkerFlags(project, product, input, outputs) {
var escapedLinkerFlags = escapeLinkerFlags(product, escapableLinkerFlags);
if (escapedLinkerFlags)
Array.prototype.push.apply(args, escapedLinkerFlags);
-
+ var driverLinkerFlags = useCompilerDriver ? product.cpp.driverLinkerFlags : undefined;
+ if (driverLinkerFlags)
+ Array.prototype.push.apply(args, driverLinkerFlags);
return args;
}