diff options
author | Tor Arne Vestbø <tor.arne.vestbo@digia.com> | 2013-04-10 17:43:51 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-13 18:36:46 +0200 |
commit | 78f3c1fb8e4b1de7ef2aa1e2a8768e842acc2777 (patch) | |
tree | 3c0ffa61ab30d0675c3f8c3c9bfc8cf08eeed8a0 /tools/configure | |
parent | 5f9d58848a9e1a224dc5bf388e54d648e71ad259 (diff) |
Make QT_CPU_FEATURES a map of features based on architecture
For now there's only one architecture per host/target, but
this will change once we start detecting the CPU features
for both device and simulator on iOS.
For convenience we set QT_CPU_FEATURES to the resolved
value of the current architecture, so that simd.prf still
can use QT_CPU_FEATURES directly.
Change-Id: I28e8b339a5c30a630e276165254dba09a3da6940
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'tools/configure')
-rw-r--r-- | tools/configure/configureapp.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index 11cdc035b8..54c262ff20 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -2872,9 +2872,11 @@ void Configure::generateCachefile() moduleStream << endl; moduleStream << "host_build {" << endl; - moduleStream << " QT_CPU_FEATURES = " << dictionary["QT_HOST_CPU_FEATURES"] << endl; + moduleStream << " QT_CPU_FEATURES." << dictionary["QT_HOST_ARCH"] << + " = " << dictionary["QT_HOST_CPU_FEATURES"] << endl; moduleStream << "} else {" << endl; - moduleStream << " QT_CPU_FEATURES = " << dictionary["QT_CPU_FEATURES"] << endl; + moduleStream << " QT_CPU_FEATURES." << dictionary["QT_ARCH"] << + " = " << dictionary["QT_CPU_FEATURES"] << endl; moduleStream << "}" << endl; if (dictionary["QT_EDITION"] != "QT_EDITION_OPENSOURCE") |