[compiler-rt] r201845 - Darwin: use the compiler-provided linker
Tim Northover
tnorthover at apple.com
Fri Feb 21 02:19:22 PST 2014
Author: tnorthover
Date: Fri Feb 21 04:19:22 2014
New Revision: 201845
URL: http://llvm.org/viewvc/llvm-project?rev=201845&view=rev
Log:
Darwin: use the compiler-provided linker
When actually compiling we use clang for the final .dylib creation stage, so we
should ask it what linker it'll use when detecting support for our
architectures.
Modified:
compiler-rt/trunk/make/platform/clang_darwin.mk
Modified: compiler-rt/trunk/make/platform/clang_darwin.mk
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/make/platform/clang_darwin.mk?rev=201845&r1=201844&r2=201845&view=diff
==============================================================================
--- compiler-rt/trunk/make/platform/clang_darwin.mk (original)
+++ compiler-rt/trunk/make/platform/clang_darwin.mk Fri Feb 21 04:19:22 2014
@@ -46,7 +46,7 @@ XCRunSdkPath = \
###
CC := $(call XCRun,clang)
-LD := $(call XCRun,ld)
+LD := $(shell $(CC) -print-prog-name=ld)
AR := $(call XCRun,ar)
RANLIB := $(call XCRun,ranlib)
STRIP := $(call XCRun,strip)
More information about the llvm-commits
mailing list