Scope QT_COMPILER_SUPPORTS_xxx by processor architecture in qconfig.h
Change-Id: Ie306b7b26e7dde641177ad54daf4365085fe9dce Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
78f3c1fb8e
commit
60fbb00d59
28
configure
vendored
28
configure
vendored
@ -6209,16 +6209,28 @@ fi
|
|||||||
# Add compiler sub-architecture support
|
# Add compiler sub-architecture support
|
||||||
echo "" >>"$outpath/src/corelib/global/qconfig.h.new"
|
echo "" >>"$outpath/src/corelib/global/qconfig.h.new"
|
||||||
echo "// Compiler sub-arch support" >>"$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 \
|
for SUBARCH in X86: SSE2 SSE3 SSSE3 SSE4_1 SSE4_2 AVX AVX2 : \
|
||||||
IWMMXT NEON \
|
ARM: IWMMXT NEON : \
|
||||||
MIPS_DSP MIPS_DSPR2; do
|
MIPS: MIPS_DSP MIPS_DSPR2 :
|
||||||
eval "VAL=\$CFG_$SUBARCH"
|
do
|
||||||
case "$VAL" in
|
line=""
|
||||||
yes)
|
case $SUBARCH in
|
||||||
echo "#define QT_COMPILER_SUPPORTS_$SUBARCH" \
|
:)
|
||||||
>>"$outpath/src/corelib/global/qconfig.h.new"
|
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
|
esac
|
||||||
|
[ -n "$line" ] && echo "$line" >>"$outpath/src/corelib/global/qconfig.h.new"
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "" >>"$outpath/src/corelib/global/qconfig.h.new"
|
echo "" >>"$outpath/src/corelib/global/qconfig.h.new"
|
||||||
|
Loading…
Reference in New Issue
Block a user