aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
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 'src')
-rw-r--r--src/lib/corelib/language/moduleloader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/corelib/language/moduleloader.cpp b/src/lib/corelib/language/moduleloader.cpp
index 74c14781a..eb06f50ff 100644
--- a/src/lib/corelib/language/moduleloader.cpp
+++ b/src/lib/corelib/language/moduleloader.cpp
@@ -3373,6 +3373,9 @@ void ModuleLoader::setupBaseModulePrototype(Item *prototype)
prototype->setProperty(QStringLiteral("hostPlatform"),
VariantValue::create(QString::fromStdString(
HostOsInfo::hostOSIdentifier())));
+ prototype->setProperty(QStringLiteral("hostArchitecture"),
+ VariantValue::create(QString::fromStdString(
+ HostOsInfo::hostOSArchitecture())));
prototype->setProperty(QStringLiteral("libexecPath"),
VariantValue::create(m_parameters.libexecPath()));