summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/make/platform/darwin_bni.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler-rt/make/platform/darwin_bni.mk b/compiler-rt/make/platform/darwin_bni.mk
index 9cfeffd4a1c..b6ba3c7c920 100644
--- a/compiler-rt/make/platform/darwin_bni.mk
+++ b/compiler-rt/make/platform/darwin_bni.mk
@@ -8,6 +8,12 @@ Configs := Debug Release Profile Static
# and the resulting lib will just have generic versions for anything unknown.
UniversalArchs := $(RC_ARCHS)
+ifeq (,$(SDKROOT))
+else
+ CC.Release := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cc
+ CC.Static := /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/cc
+endif
+
CFLAGS := -Wall -Os -fomit-frame-pointer -g
CFLAGS.Static := $(CFLAGS) -static
OpenPOWER on IntegriCloud