From a12a67c820fb010bc0396233528d652b717842e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Wed, 10 Apr 2013 12:57:06 +0200 Subject: [PATCH] Move QT_CPU_FEATURES from qconfig.pri to qmodule.pri QT_CPU_FEATURES is internal and only used by simd.prf, which is also internal. This matches the available CPU features which are detected using config tests and written to CONFIG in qmodule.pri. Change-Id: I8eb35448e2954a54c228d3617f29afc0283a7db5 Reviewed-by: Oswald Buddenhagen --- configure | 10 ++++++++-- tools/configure/configureapp.cpp | 8 ++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/configure b/configure index a965054c9a..cf72e2ba39 100755 --- a/configure +++ b/configure @@ -6413,10 +6413,8 @@ cat >>"$QTCONFIG.tmp" <> "$QTMODULE.tmp" fi +cat >>"$QTMODULE.tmp" <> "$QTMODULE.tmp" fi diff --git a/tools/configure/configureapp.cpp b/tools/configure/configureapp.cpp index e8ce665dfe..11cdc035b8 100644 --- a/tools/configure/configureapp.cpp +++ b/tools/configure/configureapp.cpp @@ -2871,6 +2871,12 @@ void Configure::generateCachefile() moduleStream << "QT_SKIP_MODULES += " << skipModules.join(' ') << endl; moduleStream << endl; + moduleStream << "host_build {" << endl; + moduleStream << " QT_CPU_FEATURES = " << dictionary["QT_HOST_CPU_FEATURES"] << endl; + moduleStream << "} else {" << endl; + moduleStream << " QT_CPU_FEATURES = " << dictionary["QT_CPU_FEATURES"] << endl; + moduleStream << "}" << endl; + if (dictionary["QT_EDITION"] != "QT_EDITION_OPENSOURCE") moduleStream << "DEFINES *= QT_EDITION=QT_EDITION_DESKTOP" << endl; @@ -3151,10 +3157,8 @@ void Configure::generateQConfigPri() configStream << endl; configStream << "host_build {" << endl; configStream << " QT_ARCH = " << dictionary["QT_HOST_ARCH"] << endl; - configStream << " QT_CPU_FEATURES = " << dictionary["QT_HOST_CPU_FEATURES"] << endl; configStream << "} else {" << endl; configStream << " QT_ARCH = " << dictionary["QT_ARCH"] << endl; - configStream << " QT_CPU_FEATURES = " << dictionary["QT_CPU_FEATURES"] << endl; if (dictionary.contains("XQMAKESPEC") && !dictionary["XQMAKESPEC"].startsWith("wince")) { // FIXME: add detection configStream << " QMAKE_DEFAULT_LIBDIRS = /lib /usr/lib" << endl;