Bug 873334 - Add -march=pentiumpro when building in x64 buildbot environments. r=ted
authorMike Hommey <mh+mozilla@glandium.org>
Tue, 28 May 2013 09:42:58 +0200
changeset 133100 0a4f4f342acff9bcb5e0bde9b349bc51cc73bee0
parent 133099 5c9f8afb8412a1c34e7a4042f468a7d46e478e47
child 133101 eb6cd5c88fc7d003bd985b5640b45fa5c2b081a4
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersted
bugs873334
milestone24.0a1
Bug 873334 - Add -march=pentiumpro when building in x64 buildbot environments. r=ted
build/unix/mozconfig.linux32
--- a/build/unix/mozconfig.linux32
+++ b/build/unix/mozconfig.linux32
@@ -1,9 +1,10 @@
 . "$topsrcdir/build/unix/mozconfig.linux"
 
 if test `uname -m` = "x86_64"; then
-  CC="$CC -m32"
-  CXX="$CXX -m32"
+  # -march=pentiumpro is what our 32-bit native toolchain defaults to
+  CC="$CC -m32 -march=pentiumpro"
+  CXX="$CXX -m32 -march=pentiumpro"
   ac_add_options --target=i686-pc-linux
   ac_add_options --x-libraries=/usr/lib
   export PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/share/pkgconfig
 fi