[PATCH] D24476: [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 14:59:21 PDT 2016


beanz created this revision.
beanz added a reviewer: llvm-commits.
beanz added a subscriber: davide.

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.

https://reviews.llvm.org/D24476

Files:
  test/mach-o/linker-as-ld.yaml

Index: test/mach-o/linker-as-ld.yaml
===================================================================
--- test/mach-o/linker-as-ld.yaml
+++ 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
 #


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24476.71060.patch
Type: text/x-patch
Size: 541 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160912/a97fccd6/attachment.bin>


More information about the llvm-commits mailing list