Bug 571367, turn production x86_64 builds into i386/x86_64 universal binaries (build system changes) r=ted

This commit is contained in:
Nick Thomas 2010-09-27 11:06:01 +13:00
parent a7eebf92ec
commit f13c01638f
4 changed files with 7 additions and 10 deletions

View File

@ -148,7 +148,7 @@ endif
ifeq ($(OS_ARCH),Darwin)
# need to pass arch flags for universal builds
ifdef UNIVERSAL_BINARY
MAKE_SYM_STORE_ARGS := -c -a "ppc i386" --vcs-info
MAKE_SYM_STORE_ARGS := -c -a "i386 x86_64" --vcs-info
MAKE_SYM_STORE_PATH := $(DIST)/universal
else
MAKE_SYM_STORE_ARGS := -c -a $(OS_TEST) --vcs-info

View File

@ -1,7 +1,7 @@
# ppc/i386 Universal Build mozconfig
# i386/x86-64 Universal Build mozconfig
# As used here, arguments in $MOZ_BUILD_PROJECTS are suitable as arguments
# to gcc's -arch parameter.
mk_add_options MOZ_BUILD_PROJECTS="ppc i386"
mk_add_options MOZ_BUILD_PROJECTS="i386 x86_64"
. $topsrcdir/build/macosx/universal/mozconfig.common

View File

@ -1,7 +0,0 @@
# i386/x86-64 Universal Build mozconfig
# As used here, arguments in $MOZ_BUILD_PROJECTS are suitable as arguments
# to gcc's -arch parameter.
mk_add_options MOZ_BUILD_PROJECTS="i386 x86_64"
. $topsrcdir/build/macosx/universal/mozconfig.common

View File

@ -58,12 +58,16 @@ MOZ_PKG_PLATFORM := win32
endif
endif
ifeq ($(OS_ARCH),Darwin)
ifdef UNIVERSAL_BINARY
MOZ_PKG_PLATFORM := mac64
else
ifeq ($(TARGET_CPU),x86_64)
MOZ_PKG_PLATFORM := mac64
else
MOZ_PKG_PLATFORM := mac
endif
endif
endif
ifeq ($(TARGET_OS),linux-gnu)
MOZ_PKG_PLATFORM := linux-$(TARGET_CPU)
endif