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

Chris Bieneman via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 12 15:38:43 PDT 2016


Author: cbieneman
Date: Mon Sep 12 17:38:43 2016
New Revision: 281271

URL: http://llvm.org/viewvc/llvm-project?rev=281271&view=rev
Log:
[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

Modified:
    lld/trunk/test/mach-o/linker-as-ld.yaml

Modified: lld/trunk/test/mach-o/linker-as-ld.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/mach-o/linker-as-ld.yaml?rev=281271&r1=281270&r2=281271&view=diff
==============================================================================
--- lld/trunk/test/mach-o/linker-as-ld.yaml (original)
+++ lld/trunk/test/mach-o/linker-as-ld.yaml Mon Sep 12 17:38:43 2016
@@ -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
 #




More information about the llvm-commits mailing list