[PATCH] D100147: [lld-macho] Re-root absolute input file paths if -syslibroot is specified
Greg McGary via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 12 20:08:55 PDT 2021
gkm 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"
----------------
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?
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