Merge "Allow --cpu= to work for x86."

This commit is contained in:
Fritz Koenig 2010-08-25 11:39:59 -07:00 committed by Code Review
commit 00358cb974

View File

@ -797,11 +797,21 @@ process_common_toolchain() {
add_ldflags -i-static
enabled x86_64 && add_cflags -ipo -no-prec-div -static -xSSE3 -axSSE3
enabled x86_64 && AR=xiar
case ${tune_cpu} in
atom*)
tune_cflags="-x"
tune_cpu="SSE3_ATOM"
;;
*)
tune_cflags="-march="
;;
esac
;;
gcc*)
add_cflags -m${bits}
add_ldflags -m${bits}
link_with_cc=gcc
tune_cflags="-march="
setup_gnu_toolchain
;;
esac