[lld] [llvm] [WebAssembly] Add segment NO_STRIP flag to support private retained data (PR #81539)

Sam Clegg via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 12 14:20:29 PST 2024


================
@@ -0,0 +1,61 @@
+; RUN: split-file %s %t
+; RUN: llc -filetype=obj --mtriple=wasm32-unknown-unknown -o %t/main.o %t/main.ll
+; RUN: llc -filetype=obj --mtriple=wasm32-unknown-unknown -o %t/liba_x.o %t/liba_x.ll
+; RUN: llc -filetype=obj --mtriple=wasm32-unknown-unknown -o %t/liba_y.o %t/liba_y.ll
+; RUN: llvm-ar rcs %t/liba.a %t/liba_x.o %t/liba_y.o
----------------
sbc100 wrote:

Other tests that use `ar` archives do `rm -f foo.a` first.. should we do that here too?

https://github.com/llvm/llvm-project/pull/81539


More information about the llvm-commits mailing list