Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 707868 - factor setting of CC and CXX for mac os X. r=rail.
Browse files Browse the repository at this point in the history
  • Loading branch information
cixtor committed Dec 8, 2011
1 parent f4f37fb commit 3fe351f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
2 changes: 2 additions & 0 deletions browser/config/mozconfigs/macosx64/debug
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
. $topsrcdir/build/macosx/common

ac_add_options --enable-debug
ac_add_options --enable-trace-malloc
ac_add_options --enable-accessibility
Expand Down
2 changes: 2 additions & 0 deletions build/macosx/common
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CC=/usr/bin/gcc-4.2
CXX=/usr/bin/g++-4.2
8 changes: 1 addition & 7 deletions build/macosx/mozconfig.leopard
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
if test -z "$CC" ; then
CC=gcc-4.2
fi

if test -z "$CXX" ; then
CXX=g++-4.2
fi
. $topsrcdir/build/macosx/common

# Mac builds don't nomally have to be handled as cross
# compilation, but some of the libraries on the bots
Expand Down
10 changes: 2 additions & 8 deletions build/macosx/universal/mozconfig.common
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,15 @@ ac_add_app_options x86_64 --target=x86_64-apple-darwin10
ac_add_app_options i386 --with-macos-sdk=/Developer/SDKs/MacOSX10.5.sdk
ac_add_app_options x86_64 --with-macos-sdk=/Developer/SDKs/MacOSX10.6.sdk

. $topsrcdir/build/macosx/common

# $MOZ_BUILD_APP is only defined when sourced by configure. That's not a
# problem, because the variables it affects only need to be set for
# configure.
if test -n "$MOZ_BUILD_APP" ; then
if test "$MOZ_BUILD_APP" = "i386" -o "$MOZ_BUILD_APP" = "x86_64"; then
TARGET_CPU=$MOZ_BUILD_APP

if test -z "$CC" ; then
CC=gcc-4.2
fi

if test -z "$CXX" ; then
CXX=g++-4.2
fi

# $HOST_CXX is presently unused. $HOST_CC will only be used during a cross
# compile.
HOST_CC=$CC
Expand Down

0 comments on commit 3fe351f

Please sign in to comment.