aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/cpp/GenericGCC.qbs
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-12-15 11:14:54 +0100
committerChristian Kandeler <christian.kandeler@qt.io>2017-12-15 11:14:54 +0100
commita9ac384513cc2c39b2005ee5651c34a49e801641 (patch)
tree830bf2b3bad36fec9b9fa0fa76f9dfa488f22da4 /share/qbs/modules/cpp/GenericGCC.qbs
parent126ce8cd2b2c0c10525e23c9900ec25b0bade601 (diff)
parent8815e0007006e996bc145a91970d71b9b4ae86d0 (diff)
Merge 1.10 into master
Diffstat (limited to 'share/qbs/modules/cpp/GenericGCC.qbs')
-rw-r--r--share/qbs/modules/cpp/GenericGCC.qbs11
1 files changed, 8 insertions, 3 deletions
diff --git a/share/qbs/modules/cpp/GenericGCC.qbs b/share/qbs/modules/cpp/GenericGCC.qbs
index 22fb857b9..824bdd18d 100644
--- a/share/qbs/modules/cpp/GenericGCC.qbs
+++ b/share/qbs/modules/cpp/GenericGCC.qbs
@@ -41,11 +41,12 @@ import qbs.WindowsUtils
import 'gcc.js' as Gcc
CppModule {
- condition: false
+ condition: qbs.toolchain && qbs.toolchain.contains("gcc")
+ priority: -100
Probes.BinaryProbe {
id: compilerPathProbe
- condition: !toolchainInstallPath
+ condition: !toolchainInstallPath && !_skipAllChecks
names: [toolchainPrefix ? toolchainPrefix + compilerName : compilerName]
}
@@ -60,6 +61,7 @@ CppModule {
Probes.GccProbe {
id: gccProbe
+ condition: !_skipAllChecks
compilerFilePathByLanguage: compilerPathByLanguage
enableDefinesByLanguage: enableCompilerDefinesByLanguage
environment: buildEnv
@@ -69,7 +71,7 @@ CppModule {
Probes.BinaryProbe {
id: binutilsProbe
- condition: !File.exists(archiverPath)
+ condition: !File.exists(archiverPath) && !_skipAllChecks
names: Gcc.toolNames([archiverName, assemblerName, linkerName, nmName,
objcopyName, stripName], toolchainPrefix)
}
@@ -83,6 +85,7 @@ CppModule {
Probe {
id: nmProbe
+ condition: !_skipAllChecks
property string theNmPath: nmPath
property bool hasDynamicOption
configure: {
@@ -262,6 +265,8 @@ CppModule {
}
validate: {
+ if (_skipAllChecks)
+ return;
if (!File.exists(compilerPath)) {
var pathMessage = FileInfo.isAbsolutePath(compilerPath)
? "at '" + compilerPath + "'"