summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/qbs/modules/cpp/CppModule.qbs2
-rw-r--r--share/qbs/modules/cpp/GenericGCC.qbs6
-rw-r--r--share/qbs/modules/cpp/msvc.js2
-rw-r--r--share/qbs/modules/cpp/windows-msvc.qbs1
4 files changed, 8 insertions, 3 deletions
diff --git a/share/qbs/modules/cpp/CppModule.qbs b/share/qbs/modules/cpp/CppModule.qbs
index f6c339d14..ce98fa154 100644
--- a/share/qbs/modules/cpp/CppModule.qbs
+++ b/share/qbs/modules/cpp/CppModule.qbs
@@ -85,6 +85,8 @@ Module {
property string compilerName
property string compilerPath: compilerName
property stringList compilerWrapper
+ property string linkerName
+ property string linkerPath: linkerName
property string staticLibraryPrefix
property string dynamicLibraryPrefix
property string executablePrefix
diff --git a/share/qbs/modules/cpp/GenericGCC.qbs b/share/qbs/modules/cpp/GenericGCC.qbs
index 023708e3a..9bbb152c5 100644
--- a/share/qbs/modules/cpp/GenericGCC.qbs
+++ b/share/qbs/modules/cpp/GenericGCC.qbs
@@ -13,6 +13,7 @@ CppModule {
property string toolchainPrefix
property path toolchainInstallPath
compilerName: 'g++'
+ linkerName: "g++"
property string archiverName: 'ar'
property path sysroot: qbs.sysroot
property path platformPath
@@ -30,6 +31,7 @@ CppModule {
}
compilerPath: toolchainPathPrefix + compilerName
+ linkerPath: toolchainPathPrefix + linkerName
property path archiverPath: { return toolchainPathPrefix + archiverName }
readonly property bool shouldCreateSymlinks: {
@@ -135,7 +137,7 @@ CppModule {
args.push(libFilePath);
args = args.concat(Gcc.libraryLinkerFlags(product, inputs));
args = args.concat(Gcc.additionalCompilerAndLinkerFlags(product));
- var cmd = new Command(ModUtils.moduleProperty(product, "compilerPath"), args);
+ var cmd = new Command(ModUtils.moduleProperty(product, "linkerPath"), args);
cmd.description = 'linking ' + FileInfo.fileName(libFilePath);
cmd.highlight = 'linker';
cmd.responseFileUsagePrefix = '@';
@@ -262,7 +264,7 @@ CppModule {
args = args.concat(Gcc.libraryLinkerFlags(product, inputs));
args = args.concat(Gcc.additionalCompilerAndLinkerFlags(product));
- var cmd = new Command(ModUtils.moduleProperty(product, "compilerPath"), args);
+ var cmd = new Command(ModUtils.moduleProperty(product, "linkerPath"), args);
cmd.description = 'linking ' + FileInfo.fileName(output.fileName);
cmd.highlight = 'linker'
cmd.responseFileUsagePrefix = '@';
diff --git a/share/qbs/modules/cpp/msvc.js b/share/qbs/modules/cpp/msvc.js
index f71b3db99..01986c16e 100644
--- a/share/qbs/modules/cpp/msvc.js
+++ b/share/qbs/modules/cpp/msvc.js
@@ -196,7 +196,7 @@ function prepareLinker(product, inputs, outputs, libraryPaths, dynamicLibraries,
args = args.concat(linkerFlags);
var commands = [];
- var cmd = new Command("link.exe", args)
+ var cmd = new Command(product.moduleProperty("cpp", "linkerPath"), args)
cmd.description = 'linking ' + FileInfo.fileName(primaryOutput.fileName)
cmd.highlight = 'linker';
cmd.workingDirectory = FileInfo.path(primaryOutput.fileName)
diff --git a/share/qbs/modules/cpp/windows-msvc.qbs b/share/qbs/modules/cpp/windows-msvc.qbs
index 944a9e1fc..0c121c820 100644
--- a/share/qbs/modules/cpp/windows-msvc.qbs
+++ b/share/qbs/modules/cpp/windows-msvc.qbs
@@ -17,6 +17,7 @@ CppModule {
compilerDefines: ['_WIN32']
warningLevel: "default"
compilerName: "cl.exe"
+ linkerName: "link.exe"
property bool generateManifestFiles: true
property path toolchainInstallPath