[PATCH] D100147: [lld-macho] Re-root absolute input file paths if -syslibroot is specified

Jez Ng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 12 20:13:27 PDT 2021


int3 marked an inline comment as done.
int3 added inline comments.


================
Comment at: lld/test/MachO/reroot-path.s:26-29
+# RUN: %lld -lSystem -syslibroot %t %t/foo.a %t/%:t/bar.a %t/test.o -o /dev/null -t | FileCheck %s -DDIR="%t/%:t"
+# RUN: %lld -lSystem -syslibroot %t -force_load %t/foo.a -force_load %t/%:t/bar.a %t/test.o -o /dev/null -t | FileCheck %s -DDIR="%t/%:t"
+# RUN: %lld -lSystem -syslibroot %t %t/libfoo.dylib %t/%:t/libbar.dylib %t/test.o -o /dev/null -t | FileCheck %s -DDIR="%t/%:t"
+# RUN: %lld -lSystem -syslibroot %t -weak_library %t/libfoo.dylib -weak_library %t/%:t/libbar.dylib %t/test.o -o /dev/null -t | FileCheck %s -DDIR="%t/%:t"
----------------
gkm wrote:
> Don't we also want to test with `%t/bar.a` and `%t/libbar.dylib` to demonstrate that `-syslibroot %t` was honored `%t` prepended to find the file?
oops, yeah. This should just be "%t/libbar.dylib", testing "%t/:%t/libbar.dylib" is unnecessary... I had this right in an earlier version of the diff :p 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100147/new/

https://reviews.llvm.org/D100147



More information about the llvm-commits mailing list