. $topsrcdir/browser/config/mozconfig

CC="clang -arch x86_64"
CXX="clang++ -arch x86_64"
HOST_CC="clang"
HOST_CXX="clang++"
RANLIB=ranlib
AR=ar
AS=$CC
LD=ld
STRIP="strip -x -S"
CROSS_COMPILE=1

mk_add_options MOZ_MAKE_FLAGS="-s --no-print-directory -j8"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-@CONFIG_GUESS@
mk_add_options MOZ_APP_DISPLAYNAME=TorBrowser
mk_add_options PROFILE_GEN_SCRIPT='$(PYTHON) $(MOZ_OBJDIR)/_profile/pgo/profileserver.py'
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1

ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk
ac_add_options --target=x86_64-apple-darwin10.6.0
ac_add_options --enable-macos-target=10.6
# bug 491774. crashreporter won't build in cross compile
ac_add_options --disable-crashreporter
ac_add_options --enable-application=browser
ac_add_options --enable-official-branding
ac_add_options --enable-libzul
ac_add_options --enable-optimize
ac_add_options --enable-strip
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-webrtc

export CFLAGS="-Wno-return-type"
export CXXFLAGS="-Wno-return-type"
