Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lld][WebAssembly] Add support for LLD_REPRODUCE
This is feature of the ELF and COFF linker that we were missing until now. Differential Revision: https://reviews.llvm.org/D137377
- Loading branch information
Showing
3 changed files
with
39 additions
and
29 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# REQUIRES: shell | ||
# RUN: rm -rf %t.dir | ||
# RUN: mkdir -p %t.dir | ||
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown -o %t.dir/foo.o %s | ||
# RUN: wasm-ld --reproduce=%t.dir/repro.tar -o %t.dir/out.wasm %t.dir/foo.o | ||
# RUN: env LLD_REPRODUCE=%t.dir/repro2.tar wasm-ld -o %t.dir/out.wasm %t.dir/foo.o | ||
|
||
# RUN: cd %t.dir | ||
# RUN: tar tf repro.tar | FileCheck --check-prefix=TAR %s | ||
# RUN: tar tf repro2.tar | FileCheck --check-prefix=TAR2 %s | ||
|
||
# TAR: repro/response.txt | ||
# TAR: repro/version.txt | ||
# TAR: repro/{{.*}}/foo.o | ||
|
||
# TAR2: repro2/response.txt | ||
# TAR2: repro2/version.txt | ||
# TAR2: repro2/{{.*}}/foo.o | ||
|
||
# RUN: tar xf repro.tar | ||
# RUN: FileCheck --check-prefix=RSP %s < repro/response.txt | ||
|
||
# RSP: -o {{.*}}out.wasm | ||
# RSP: {{.*}}/foo.o | ||
|
||
# RUN: FileCheck %s --check-prefix=VERSION < repro/version.txt | ||
# VERSION: LLD | ||
|
||
.globl _start | ||
_start: | ||
.functype _start () -> () | ||
end_function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters