aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2019-03-12 15:48:08 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2019-03-12 13:09:47 +0000
commit216b592da415e78b805204b58b5e15a208338004 (patch)
treed5ded203e71035d2a093894edbcf55327a312d69
parent27d9bc85aa5eb2aa717fdc909cb2104cad0d3334 (diff)
bare-metal: Add missed linker options from IAR for AVR toolchain
Change-Id: I7654eb66ea4a11c9e7e035d3512f2b0601733b28 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r--share/qbs/modules/cpp/iar.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/iar.js b/share/qbs/modules/cpp/iar.js
index a64ed95bb..35ed29da3 100644
--- a/share/qbs/modules/cpp/iar.js
+++ b/share/qbs/modules/cpp/iar.js
@@ -313,12 +313,16 @@ function linkerFlags(project, product, input, outputs) {
args.push("--entry", product.cpp.entryPoint);
else if (product.qbs.architecture === "mcs51")
args.push("-s", product.cpp.entryPoint);
+ else if (product.qbs.architecture === "avr")
+ args.push("-s", product.cpp.entryPoint);
}
if (product.qbs.architecture === "arm")
args.push("--silent"); // Silent operation.
else if (product.qbs.architecture === "mcs51")
args.push("-S"); // Silent operation.
+ else if (product.qbs.architecture === "avr")
+ args.push("-S"); // Silent operation.
args = args.concat(ModUtils.moduleProperty(product, "driverLinkerFlags"));
return args;