Delay SSE check until the compiler is configured.
Move SSE4 detection below compiler configuration. Otherwise ${CC} may not be populated. We are specifically interested in -msse4.1. Narrow detection code. Change-Id: I0ffac49e91b3fdb2aceb6eb6b90dc1c10b159111
This commit is contained in:
parent
e48776f29b
commit
1a0f52485a
@ -1011,11 +1011,6 @@ EOF
|
|||||||
soft_enable sse2
|
soft_enable sse2
|
||||||
soft_enable sse3
|
soft_enable sse3
|
||||||
soft_enable ssse3
|
soft_enable ssse3
|
||||||
if enabled gcc && ! disabled sse4_1 && ! check_cflags -msse4; then
|
|
||||||
RTCD_OPTIONS="${RTCD_OPTIONS}--disable-sse4_1 "
|
|
||||||
else
|
|
||||||
soft_enable sse4_1
|
|
||||||
fi
|
|
||||||
|
|
||||||
case ${tgt_os} in
|
case ${tgt_os} in
|
||||||
win*)
|
win*)
|
||||||
@ -1069,6 +1064,14 @@ EOF
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
# We can't use 'check_cflags' until the compiler is configured and CC is
|
||||||
|
# populated.
|
||||||
|
if enabled gcc && ! disabled sse4_1 && ! check_cflags -msse4.1; then
|
||||||
|
RTCD_OPTIONS="${RTCD_OPTIONS}--disable-sse4_1 "
|
||||||
|
else
|
||||||
|
soft_enable sse4_1
|
||||||
|
fi
|
||||||
|
|
||||||
case "${AS}" in
|
case "${AS}" in
|
||||||
auto|"")
|
auto|"")
|
||||||
which nasm >/dev/null 2>&1 && AS=nasm
|
which nasm >/dev/null 2>&1 && AS=nasm
|
||||||
|
Loading…
Reference in New Issue
Block a user