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
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