summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2013-05-21 23:02:04 +0000
committerNick Kledzik <kledzik@apple.com>2013-05-21 23:02:04 +0000
commite04a1fdc5d173586408421144a0cd79d1767f918 (patch)
tree8f533ba0b6d13bcb50d61048df0da8c75b5b9654 /make
parentd4ad20b6bb6e790dd8397bc6ca6a901781f7460f (diff)
<rdar://problem/13806954> enable __atomic_* functions for Darwin
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182435 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'make')
-rw-r--r--make/AppleBI.mk1
-rw-r--r--make/platform/darwin_bni.mk2
2 files changed, 2 insertions, 1 deletions
diff --git a/make/AppleBI.mk b/make/AppleBI.mk
index bb7885306..d3d477130 100644
--- a/make/AppleBI.mk
+++ b/make/AppleBI.mk
@@ -61,6 +61,7 @@ $(OBJROOT)/libcompiler_rt-%.dylib : $(OBJROOT)/darwin_bni/Release/%/libcompiler_
-Wl,-upward-lunwind \
-Wl,-upward-lsystem_m \
-Wl,-upward-lsystem_c \
+ -Wl,-upward-lsystem_platform \
-Wl,-ldyld \
-Wl,-lsystem_kernel \
-L$(SDKROOT)/usr/lib/system \
diff --git a/make/platform/darwin_bni.mk b/make/platform/darwin_bni.mk
index d12cfdff7..afd04313e 100644
--- a/make/platform/darwin_bni.mk
+++ b/make/platform/darwin_bni.mk
@@ -47,7 +47,7 @@ FUNCTIONS := absvdi2 absvsi2 addvdi3 addvsi3 ashldi3 ashrdi3 \
mulodi4 muloti4 mulsc3 mulvdi3 mulvsi3 negdi2 negvdi2 negvsi2 \
paritydi2 paritysi2 popcountdi2 popcountsi2 powidf2 \
powisf2 subvdi3 subvsi3 ucmpdi2 udivdi3 \
- udivmoddi4 umoddi3 apple_versioning eprintf
+ udivmoddi4 umoddi3 apple_versioning eprintf atomic
FUNCTIONS.i386 := $(FUNCTIONS) \
divxc3 fixunsxfdi fixunsxfsi fixxfdi floatdixf \