Skip to content

Commit 5a805df

Browse files
author
Chris Bieneman
committed
[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
1 parent ff00fae commit 5a805df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lld/test/mach-o/linker-as-ld.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# REQUIRES: system-linker-mach-o
22
#
3-
# RUN: mkdir -p %t.dir && cp `which lld` %t.dir/ld \
4-
# RUN: && %t.dir/ld -arch x86_64 -macosx_version_min 10.8 %s \
3+
# RUN: rm -rf %T/ld && ln -s `which lld` %T/ld \
4+
# RUN: && %T/ld -arch x86_64 -macosx_version_min 10.8 %s \
55
# RUN: %p/Inputs/linker-as-ld.yaml -o %t \
66
# RUN: && llvm-nm %t | FileCheck %s
77
#

0 commit comments

Comments
 (0)