forked from OSchip/llvm-project
Driver/Darwin: Change to use generic iOS runtime library, which we now always need.
llvm-svn: 129734
This commit is contained in:
parent
11d1a42e84
commit
d107638328
|
@ -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.
|
||||
|
|
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue