aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/qbs
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2013-10-15 15:24:30 +0200
committerJoerg Bornemann <joerg.bornemann@digia.com>2013-10-16 14:44:00 +0200
commitc200f8faeaa565286e2c3fe3775a6d9d25140792 (patch)
tree95ab2a2b43e354229db35877b2b0757b67f664a0 /share/qbs/modules/qbs
parent416ce875b2949d6a7d13f956298fc44832ed8205 (diff)
create a profile per MSVC installation and per architecture
detect-toolchains will now create one profile per supported architecture per found MSVC installation. Task-number: QBS-404 Change-Id: I6ca569c312c31c39c49cfbfe5ffa638698fb90b2 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com> Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Diffstat (limited to 'share/qbs/modules/qbs')
-rw-r--r--share/qbs/modules/qbs/common.qbs7
1 files changed, 5 insertions, 2 deletions
diff --git a/share/qbs/modules/qbs/common.qbs b/share/qbs/modules/qbs/common.qbs
index 6b9a35f76..e866c02e4 100644
--- a/share/qbs/modules/qbs/common.qbs
+++ b/share/qbs/modules/qbs/common.qbs
@@ -39,8 +39,11 @@ Module {
}
validate: {
- if (!architecture) // ### remove and replace with suggestion to re-run detect-toolchains,
- return; // once QBS-404 is fixed
+ if (!architecture) { // ### don't warn but throw in 1.2
+ print("WARNING: qbs.architecture is not set. "
+ + "You might want to re-run 'qbs detect-toolchains'.");
+ return;
+ }
var architectureSynonyms = {
"x86": ["i386", "i486", "i586", "i686", "ia32", "ia-32", "x86_32", "x86-32", "intel32"],