Bug 748742 - Drop ccache options from Mac debug mozconfigs and make the mac32 bit mozconfig work properly. r=jhopkins NPOTB,a=Standard8 for CLOSED TREE. DONTBUILD
authorMark Banner <bugzilla@standard8.plus.com>
Wed, 25 Apr 2012 15:02:24 +0100
changeset 11341 dd59d26adf9d512603b3f9ed420724b8315fd464
parent 11340 383e1aa8a1c5d17fcb9555ec286e24503f8e61e1
child 11342 181e96948049acdb60d5242032e6ecff73b4591e
push id507
push userbugzilla@standard8.plus.com
push dateFri, 25 May 2012 08:38:33 +0000
treeherdercomm-beta@6b0e7688a975 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjhopkins, Standard8
bugs748742
Bug 748742 - Drop ccache options from Mac debug mozconfigs and make the mac32 bit mozconfig work properly. r=jhopkins NPOTB,a=Standard8 for CLOSED TREE. DONTBUILD
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