diff options
author | Jake Petroules <jake.petroules@qt.io> | 2017-06-26 17:04:49 -0700 |
---|---|---|
committer | Jake Petroules <jake.petroules@qt.io> | 2017-06-29 16:16:08 +0000 |
commit | 38bb125aae3ac592434446b8b02d14d4ef5618c0 (patch) | |
tree | 33e7e53253bf955e498ddfc28ff0cc031849f5ce /share/qbs/modules/cpp/CppModule.qbs | |
parent | 6c9aa189aa9f3a83cd1efc3b9b350a8d0be87cf6 (diff) | |
download | qbs-38bb125aae3ac592434446b8b02d14d4ef5618c0.tar.gz |
Re-introduce endianness property
Now it can actually be useful, in order to select a specific endianness
when building for architectures that are bi-endian. For example, MIPS
and PowerPC.
This patch makes it possible to build for ppc64le, which is the only
variant of the PowerPC architecture that seems to be relevant today.
ppc32 and all big-endian variants seem to have fallen out of use.
Change-Id: Id1b9f9b397990136ab9aa899829345d426465824
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'share/qbs/modules/cpp/CppModule.qbs')
-rw-r--r-- | share/qbs/modules/cpp/CppModule.qbs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/qbs/modules/cpp/CppModule.qbs b/share/qbs/modules/cpp/CppModule.qbs index 75425924e..1c9f9b40e 100644 --- a/share/qbs/modules/cpp/CppModule.qbs +++ b/share/qbs/modules/cpp/CppModule.qbs @@ -45,6 +45,7 @@ Module { property bool treatWarningsAsErrors : false property bool enableSuspiciousLinkerFlagWarnings: true property string architecture: qbs.architecture + property string endianness property string machineType // undocumented property string imageFormat // undocumented property string optimization: qbs.optimization @@ -429,6 +430,7 @@ Module { return !architecture || architecture === Utilities.canonicalArchitecture(architecture); }, "'" + architecture + "' is invalid. You must use the canonical name '" + Utilities.canonicalArchitecture(architecture) + "'"); + validator.setRequiredProperty("endianness", endianness); validator.setRequiredProperty("compilerVersion", compilerVersion); validator.setRequiredProperty("compilerVersionMajor", compilerVersionMajor); validator.setRequiredProperty("compilerVersionMinor", compilerVersionMinor); |