summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWan-Teh Chang <wtc@google.com>2016-03-21 19:42:54 -0700
committerWan-Teh Chang <wtc@google.com>2016-03-21 19:42:54 -0700
commit2d03b881cf767facbb3a291b03fcaa00a3367533 (patch)
tree0fd4bba9f0b8158a5bdb10b77a04af2e0640eeac
parent92214e44a9b9b67b2e26e417c339f494b4779d04 (diff)
downloadnss-hg-2d03b881cf767facbb3a291b03fcaa00a3367533.tar.gz
Bug 1258589: Support building C++ tests for 32-bit x86 Mac OS X.
r=ekr
-rw-r--r--coreconf/Darwin.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/coreconf/Darwin.mk b/coreconf/Darwin.mk
index 85b05cece..8b2bd17f7 100644
--- a/coreconf/Darwin.mk
+++ b/coreconf/Darwin.mk
@@ -21,10 +21,12 @@ endif
ifeq (,$(filter-out i%86,$(CPU_ARCH)))
ifdef USE_64
CC += -arch x86_64
+CCC += -arch x86_64
override CPU_ARCH = x86_64
else
OS_REL_CFLAGS = -Di386
CC += -arch i386
+CCC += -arch i386
override CPU_ARCH = x86
endif
else
@@ -33,6 +35,7 @@ ifeq (arm,$(CPU_ARCH))
else
OS_REL_CFLAGS = -Dppc
CC += -arch ppc
+CCC += -arch ppc
endif
endif