[lld] [lld][WebAssembly] Fix stub library deps causing LTO archive members to be required post-LTO (PR #101894)
Alon Zakai via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 6 14:52:20 PDT 2024
================
@@ -1,12 +1,15 @@
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.o %s
-# RUN: llvm-as %S/Inputs/foo.ll -o %t1.o
-# RUN: wasm-ld %t.o %t1.o %p/Inputs/stub.so -o %t.wasm
+# RUN: mkdir -p %t
+# RUN: llvm-as %S/Inputs/foo.ll -o %t/foo.o
+# RUN: rm -f %t/libfoo.a
+# RUN: llvm-ar rcs %t/libfoo.a %t/foo.o
+# RUN: wasm-ld %t.o %t/libfoo.a %p/Inputs/stub.so -o %t.wasm
----------------
kripken wrote:
Do we not need the old test as well, to check the case of a raw object file and not one inside an archive?
https://github.com/llvm/llvm-project/pull/101894
More information about the llvm-commits
mailing list