]> granicus.if.org Git - clang/commitdiff
Driver/Darwin: Change to use generic iOS runtime library, which we now always need.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 18 Apr 2011 23:48:36 +0000 (23:48 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 18 Apr 2011 23:48:36 +0000 (23:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129734 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp
runtime/compiler-rt/Makefile

index 1b39398120ff2c14e8591f0b39d0e3cb12478e9e..28b2f2e9d41287f31527cc60b6daaf7292f43098 100644 (file)
@@ -353,10 +353,8 @@ void DarwinClang::AddLinkRuntimeLibArgs(const ArgList &Args,
   if (isTargetIPhoneOS()) {
     CmdArgs.push_back("-lgcc_s.1");
 
-    // We may need some static functions for armv6/thumb which are required to
-    // be in the same linkage unit as their caller.
-    if (getDarwinArchName(Args) == "armv6")
-      DarwinStaticLib = "libclang_rt.armv6.a";
+    // We currently always need a static runtime library for iOS.
+    DarwinStaticLib = "libclang_rt.ios.a";
   } else {
     // The dynamic runtime library was merged with libSystem for 10.6 and
     // beyond; only 10.4 and 10.5 need an additional runtime library.
index 915030a81ecfba00df2404bef07ae078e26003c0..dcdd4f5ec03f6b36ab951c03e1c451d24eca2c93 100644 (file)
@@ -42,7 +42,7 @@ ifeq ($(shell test -d $(COMPILERRT_SRC_ROOT) && echo OK),OK)
 RuntimeDirs :=
 ifeq ($(OS),Darwin)
 RuntimeDirs += darwin
-RuntimeLibrary.darwin.Configs = eprintf 10.4 armv6 cc_kext
+RuntimeLibrary.darwin.Configs = eprintf 10.4 ios cc_kext
 
 # On Darwin, fake Clang into using the iOS assembler (since compiler-rt wants to
 # build ARM bits).