From 5a805df1a57565d724569eaa2814ba53842316fe Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Mon, 12 Sep 2016 22:38:43 +0000 Subject: [PATCH] [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 --- lld/test/mach-o/linker-as-ld.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lld/test/mach-o/linker-as-ld.yaml b/lld/test/mach-o/linker-as-ld.yaml index f0bf189876a6..21afdb2ea02e 100644 --- a/lld/test/mach-o/linker-as-ld.yaml +++ b/lld/test/mach-o/linker-as-ld.yaml @@ -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 #