Bug 748742 - Drop ccache options from Mac debug mozconfigs and make the mac32 bit mozconfig work properly. r=jhopkins NPOTB
authorMark Banner <bugzilla@standard8.plus.com>
Wed, 25 Apr 2012 15:02:24 +0100
changeset 10011 e2b614bcfccad3afb052ad9d3d9744fd108a1445
parent 10010 741503838e6c14324c0926b847f61dda80554f37
child 10012 9b37adf75370247629eba607bc8bbb140ce324c4
push id7619
push userbugzilla@standard8.plus.com
push dateWed, 25 Apr 2012 14:03:55 +0000
treeherdercomm-central@251fab15820b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjhopkins
bugs748742
Bug 748742 - Drop ccache options from Mac debug mozconfigs and make the mac32 bit mozconfig work properly. r=jhopkins NPOTB
build/macosx/mozconfig.leopard
mail/config/mozconfigs/macosx32/debug
mail/config/mozconfigs/macosx64/debug
new file mode 100644
--- /dev/null
+++ b/build/macosx/mozconfig.leopard
@@ -0,0 +1,32 @@
+. $topsrcdir/build/macosx/common
+
+# Mac builds don't nomally have to be handled as cross
+# compilation, but some of the libraries on the bots
+# (IDL for example) are built only for one arch.
+
+HOST_CC=$CC
+HOST_CXX=$CXX
+
+# These must be set for cross builds, and don't hurt straight builds.
+RANLIB=ranlib
+AR=ar
+AS=$CC
+LD=ld
+STRIP="strip -x -S"
+
+MOZ_CAN_RUN_PROGRAMS=1
+
+# We do 32 bit builds for leopard
+TARGET_CPU=i386
+CC="$CC -arch $TARGET_CPU"
+CXX="$CXX -arch $TARGET_CPU"
+
+NATIVE_CPU=`$topsrcdir/build/autoconf/config.guess | cut -f1 -d-`
+
+if test "$NATIVE_CPU" != "$TARGET_CPU" ; then
+  CROSS_COMPILE=1
+fi
+
+# Note, the version (10) is used by libffi's configure.
+ac_add_options --target=i386-apple-darwin10
+ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk
--- a/mail/config/mozconfigs/macosx32/debug
+++ b/mail/config/mozconfigs/macosx32/debug
@@ -1,29 +1,19 @@
-if test -e "$topsrcdir/mozilla/build/macosx/mozconfig.leopard"; then
-  oldtopsrcdir=$topsrcdir
-  export topsrcdir=$topsrcdir/mozilla
-fi
-
 . $topsrcdir/build/macosx/mozconfig.leopard
-
-if test -n $oldtopsrcdir; then
-  export topsrcdir=$oldtopsrcdir
-fi
-
 ac_add_options --enable-application=mail
 ac_add_options --enable-debug
 ac_add_options --enable-trace-malloc
 
 # Enable parallel compiling
 mk_add_options MOZ_MAKE_FLAGS="-j12"
 
 # Needed to enable breakpad in application.ini
 export MOZILLA_OFFICIAL=1
 
 # For NSS symbols
 export MOZ_DEBUG_SYMBOLS=1
 
-ac_add_options --with-ccache
+#ac_add_options --with-ccache
 
 # Run client.py
 mk_add_options CLIENT_PY_ARGS="--hg-options='--verbose --time' --hgtool=../tools/buildfarm/utils/hgtool.py --skip-chatzilla --skip-comm --skip-inspector --skip-venkman --tinderbox-print"
 mk_add_options ALWAYS_RUN_CLIENT_PY=1
--- a/mail/config/mozconfigs/macosx64/debug
+++ b/mail/config/mozconfigs/macosx64/debug
@@ -17,13 +17,13 @@ ac_add_options --enable-trace-malloc
 mk_add_options MOZ_MAKE_FLAGS="-j12"
 
 # Needed to enable breakpad in application.ini
 export MOZILLA_OFFICIAL=1
 
 # For NSS symbols
 export MOZ_DEBUG_SYMBOLS=1
 
-ac_add_options --with-ccache
+#ac_add_options --with-ccache
 
 # Run client.py
 mk_add_options CLIENT_PY_ARGS="--hg-options='--verbose --time' --hgtool=../tools/buildfarm/utils/hgtool.py --skip-chatzilla --skip-comm --skip-inspector --skip-venkman --tinderbox-print"
 mk_add_options ALWAYS_RUN_CLIENT_PY=1