Commit 00358cb9 authored by Fritz Koenig's avatar Fritz Koenig Committed by Code Review
Browse files

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

Showing with 10 additions and 0 deletions
...@@ -797,11 +797,21 @@ process_common_toolchain() { ...@@ -797,11 +797,21 @@ process_common_toolchain() {
add_ldflags -i-static add_ldflags -i-static
enabled x86_64 && add_cflags -ipo -no-prec-div -static -xSSE3 -axSSE3 enabled x86_64 && add_cflags -ipo -no-prec-div -static -xSSE3 -axSSE3
enabled x86_64 && AR=xiar enabled x86_64 && AR=xiar
case ${tune_cpu} in
atom*)
tune_cflags="-x"
tune_cpu="SSE3_ATOM"
;;
*)
tune_cflags="-march="
;;
esac
;; ;;
gcc*) gcc*)
add_cflags -m${bits} add_cflags -m${bits}
add_ldflags -m${bits} add_ldflags -m${bits}
link_with_cc=gcc link_with_cc=gcc
tune_cflags="-march="
setup_gnu_toolchain setup_gnu_toolchain
;; ;;
esac esac
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment