[llvm-commits] [compiler-rt] r93817 - /compiler-rt/trunk/make/platform/clang_darwin.mk

Daniel Dunbar daniel at zuster.org
Mon Jan 18 16:01:22 PST 2010


Author: ddunbar
Date: Mon Jan 18 18:01:22 2010
New Revision: 93817

URL: http://llvm.org/viewvc/llvm-project?rev=93817&view=rev
Log:
Add .mk for use by clang/Darwin.

Added:
    compiler-rt/trunk/make/platform/clang_darwin.mk

Added: compiler-rt/trunk/make/platform/clang_darwin.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_darwin.mk?rev=93817&view=auto

==============================================================================
--- compiler-rt/trunk/make/platform/clang_darwin.mk (added)
+++ compiler-rt/trunk/make/platform/clang_darwin.mk Mon Jan 18 18:01:22 2010
@@ -0,0 +1,30 @@
+# These are the functions which clang needs when it is targetting a previous
+# version of the OS. The issue is that the backend may use functions which were
+# not present in the libgcc that shipped on the platform. In such cases, we link
+# with a version of the library which contains private_extern definitions of all
+# the extra functions which might be referenced.
+
+Description := Static runtime libraries for clang/Darwin.
+
+Configs := 
+UniversalArchs :=
+
+# Configuration for targetting 10.4 on x86. We need a few functions missing from
+# libgcc_s.10.4.dylib.
+Configs += x86_10.4
+UniversalArchs.x86_10.4 := i386 x86_64
+
+# Configuration for targetting armv6. We need a few additional functions which
+# must be in the same linkage unit.
+Configs += armv6
+UniversalArchs.armv6 := armv6
+
+CC := gcc
+
+CFLAGS := -Wall -Werror -O3 -fomit-frame-pointer
+
+FUNCTIONS.x86_10.4 := floatundidf floatundisf floatundixf
+FUNCTIONS.armv6 := switch16 switch32 switch8 switchu8 \
+                   save_vfp_d8_d15_regs restore_vfp_d8_d15_regs
+
+VISIBILITY_HIDDEN := 1





More information about the llvm-commits mailing list