diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-06-17 09:31:00 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-06-19 14:26:38 +0000 |
commit | 59bbb6ffe0a4529b7a87538550b63bb63563613b (patch) | |
tree | bfb241bb6adbe0b59d9d0fc1b176a567b30a1b18 | |
parent | b2677d0789d85a3136e41fba75c82782fefb7009 (diff) |
Add a comment warning about argument order in linkerFlags due to QCC
Amends eb2e67a
Change-Id: I902b49f17917494e6b8e166c9bdae98ddde7f142
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
-rw-r--r-- | share/qbs/modules/cpp/gcc.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/gcc.js b/share/qbs/modules/cpp/gcc.js index 78b534298..7e4071f1c 100644 --- a/share/qbs/modules/cpp/gcc.js +++ b/share/qbs/modules/cpp/gcc.js @@ -350,6 +350,9 @@ function linkerFlags(project, product, inputs, output, linkerPath) { product, inputs, product.cpp.platformLinkerFlags)); args = args.concat(escapeLinkerFlags(product, inputs, product.cpp.linkerFlags)); + // Note: due to the QCC response files hack in prepareLinker(), at least one object file or + // library file must follow the output file path so that QCC has something to process before + // sending the rest of the arguments through the response file. args.push("-o", output.filePath); if (inputs.obj) |