[PATCH] D148726: [ELF] Support --exclude-inputs
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 19 10:27:23 PDT 2023
MaskRay added a comment.
I feel that this debugging feature will be useful. Can you please create a post on https://discourse.llvm.org/c/subprojects/lld/7 so that more people can comment? It's possible that some linkers have similar features and we can learn from their experience.
================
Comment at: lld/test/ELF/exclude-inputs.s:9
+
+// RUN: ld.lld --exclude-inputs='*foo*' --whole-archive %t-foo.o %t.dir/bar.a -o %t.exe
+// RUN: llvm-readelf -s %t.exe | FileCheck --check-prefix=OBJECT %s
----------------
If `%t` (an absolute path) contains `foo`, this check may go wrong.
Add `# RUN: rm -rf %t && mkdir %t && cd %t` in the first line can avoid this issue.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148726/new/
https://reviews.llvm.org/D148726
More information about the llvm-commits
mailing list