]> granicus.if.org Git - libvpx/commitdiff
Allow --cpu= to work for x86.
authorFritz Koenig <frkoenig@google.com>
Tue, 24 Aug 2010 23:27:49 +0000 (16:27 -0700)
committerFritz Koenig <frkoenig@google.com>
Tue, 24 Aug 2010 23:27:49 +0000 (16:27 -0700)
--cpu was already implemented for most of our embedded
platforms, this just extends it to x86.  Corner case for
Atom processor as it doesn't respond to the --march=
option under icc.

Change-Id: I2d57a7a6e9d0b55c0059e9bc46cfc9bf9468c185

build/make/configure.sh

index 3b6c919fd7ca67a76cdf1b8ebdd598679d90d8e8..cebdd57bae2244f16aa4ee1cff5e933b3de2c787 100755 (executable)
@@ -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