aboutsummaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorIvan Komissarov <abbapoh@gmail.com>2020-03-07 14:11:10 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2020-03-11 12:57:22 +0000
commitca00d222003c2cfb216a8ecd16f21462d33b324e (patch)
tree3175db0e46a9d9f51da04714dc9682f58df22898 /share
parentadd8aab4bdcd07c7b08a13b1be1984ba807bdf50 (diff)
Add qbs.hostArchitecture property
This property can be useful when some parts of the project (e.g. helper tools) should be compiled for the host platform/architecture disregarding what targetPlatform/architecture the rest of the project is being built for Change-Id: I8c76ef65470130df59826603157083fd20809592 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share')
-rw-r--r--share/qbs/modules/qbs/common.qbs1
1 files changed, 1 insertions, 0 deletions
diff --git a/share/qbs/modules/qbs/common.qbs b/share/qbs/modules/qbs/common.qbs
index 9fb9dba3e..8ddfc582d 100644
--- a/share/qbs/modules/qbs/common.qbs
+++ b/share/qbs/modules/qbs/common.qbs
@@ -61,6 +61,7 @@ Module {
return version + "." + hostOSBuildVersion;
}
}
+ readonly property string hostArchitecture: undefined // set internally
property string hostOSBuildVersion: {
if (hostOS.contains("macos")) {