[cfe-commits] r129734 - in /cfe/trunk: lib/Driver/ToolChains.cpp runtime/compiler-rt/Makefile

Daniel Dunbar daniel at zuster.org
Mon Apr 18 16:48:36 PDT 2011


Author: ddunbar
Date: Mon Apr 18 18:48:36 2011
New Revision: 129734

URL: http://llvm.org/viewvc/llvm-project?rev=129734&view=rev
Log:
Driver/Darwin: Change to use generic iOS runtime library, which we now always need.

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp
    cfe/trunk/runtime/compiler-rt/Makefile

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=129734&r1=129733&r2=129734&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Mon Apr 18 18:48:36 2011
@@ -353,10 +353,8 @@
   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.

Modified: cfe/trunk/runtime/compiler-rt/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/runtime/compiler-rt/Makefile?rev=129734&r1=129733&r2=129734&view=diff
==============================================================================
--- cfe/trunk/runtime/compiler-rt/Makefile (original)
+++ cfe/trunk/runtime/compiler-rt/Makefile Mon Apr 18 18:48:36 2011
@@ -42,7 +42,7 @@
 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).





More information about the cfe-commits mailing list