summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2013-04-11 16:14:31 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-13 18:36:52 +0200
commit60fbb00d59258d0bad0ecee5aa777be802e428e8 (patch)
tree5bbe40745a4d428c4df6a4eff8e5f3986f1ccf1e /configure
parent78f3c1fb8e4b1de7ef2aa1e2a8768e842acc2777 (diff)
Scope QT_COMPILER_SUPPORTS_xxx by processor architecture in qconfig.h
Change-Id: Ie306b7b26e7dde641177ad54daf4365085fe9dce Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure28
1 files changed, 20 insertions, 8 deletions
diff --git a/configure b/configure
index a52f5fbffd..88e28ea0ff 100755
--- a/configure
+++ b/configure
@@ -6209,16 +6209,28 @@ fi
# Add compiler sub-architecture support
echo "" >>"$outpath/src/corelib/global/qconfig.h.new"
echo "// Compiler sub-arch support" >>"$outpath/src/corelib/global/qconfig.h.new"
-for SUBARCH in SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 AVX AVX2 \
- IWMMXT NEON \
- MIPS_DSP MIPS_DSPR2; do
- eval "VAL=\$CFG_$SUBARCH"
- case "$VAL" in
- yes)
- echo "#define QT_COMPILER_SUPPORTS_$SUBARCH" \
- >>"$outpath/src/corelib/global/qconfig.h.new"
+for SUBARCH in X86: SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 AVX AVX2 : \
+ ARM: IWMMXT NEON : \
+ MIPS: MIPS_DSP MIPS_DSPR2 :
+do
+ line=""
+ case $SUBARCH in
+ :)
+ line="#endif"
+ ;;
+ *:)
+ line="#ifdef Q_PROCESSOR_$(echo $SUBARCH | sed 's/:$//')"
+ ;;
+ *)
+ eval "VAL=\$CFG_$SUBARCH"
+ case "$VAL" in
+ yes)
+ line=" #define QT_COMPILER_SUPPORTS_$SUBARCH"
+ ;;
+ esac
;;
esac
+ [ -n "$line" ] && echo "$line" >>"$outpath/src/corelib/global/qconfig.h.new"
done
echo "" >>"$outpath/src/corelib/global/qconfig.h.new"