[CMake] Fix linker-as-ld to symlink instead of copy lld

Summary: This test fails if you're building with BUILD_SHARED_LIBS because the LLVM libraries are found via @rpath. Symlinking instead of copying should be sufficiently robust for the test case.

Reviewers: llvm-commits

Subscribers: davide

Differential Revision: https://reviews.llvm.org/D24476

llvm-svn: 281271
This commit is contained in:
Chris Bieneman 2016-09-12 22:38:43 +00:00
parent ff00fae8e6
commit 5a805df1a5
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# REQUIRES: system-linker-mach-o
#
# RUN: mkdir -p %t.dir && cp `which lld` %t.dir/ld \
# RUN: && %t.dir/ld -arch x86_64 -macosx_version_min 10.8 %s \
# RUN: rm -rf %T/ld && ln -s `which lld` %T/ld \
# RUN: && %T/ld -arch x86_64 -macosx_version_min 10.8 %s \
# RUN: %p/Inputs/linker-as-ld.yaml -o %t \
# RUN: && llvm-nm %t | FileCheck %s
#