Skip to content

Commit

Permalink
Makefile: try to fix the testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
pipcet committed Jan 28, 2021
1 parent c49f45d commit 4650467
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ built/wasm32: | built
$(MKDIR) $@
test/wasm32: | test
$(MKDIR) $@
build/wasm32/binutils-gdb build/wasm32/gcc-preliminary build/wasm32/gdb build/wasm32/glibc build/wasm32/gcc build/wasm32/gcc-testsuite build/wasm32/ncurses build/wasm32/bash: | build/wasm32
build/wasm32/binutils-gdb build/wasm32/gcc-preliminary build/wasm32/gdb build/wasm32/glibc build/wasm32/gcc build/wasm32/gcc-testsuite build/wasm32/gcc-testsuite-tar build/wasm32/gcc-testsuite-make build/wasm32/ncurses build/wasm32/bash: | build/wasm32
$(MKDIR) $@
build/wasm32/gcc-testsuite/make: | build/wasm32/gcc-testsuite
$(MKDIR) $@
build/common/binaryen build/common/wabt: | build/common
$(MKDIR) $@
Expand Down Expand Up @@ -119,7 +121,7 @@ build/wasm32/gcc-testsuite/site.exp: | build
echo 'set tmpdir $(PWD)/build/wasm32/gcc-testsuite' >> $@
echo 'set srcdir "$${srcdir}/testsuite"' >> $@

build/wasm32/gcc-testsuite/%.{dejagnu}.mk: | build/wasm32/gcc-testsuite src/gcc build/wasm32/gcc-testsuite/site.exp
build/wasm32/gcc-testsuite-make/%.{dejagnu}.mk: | build/wasm32/gcc-testsuite/make src/gcc build/wasm32/gcc-testsuite/site.exp
$(MKDIR) $(dir $@)
> $@
for file in $$(cd src/gcc/gcc/testsuite/$(dir $*); find -type f | egrep '\.([cSi])$$' | sed -e 's/^\.\///g' | egrep -v '\/'); do \
Expand All @@ -146,7 +148,7 @@ build/wasm32/gcc-testsuite/gcc.dg/debug/dwarf2/%: build/wasm32/gcc-testsuite/gcc
build/wasm32/gcc-testsuite/gcc.dg/tls/%: build/wasm32/gcc-testsuite/gcc.dg/tls/tls.exp.{dejagnu}.mk
make -f $< $@ || (cat $(dir $@)gcc.log > /dev/stderr; false)

build/wasm32/gcc-testsuite/%.{dejagnu}.tar: build/wasm32/gcc-testsuite/%.{dejagnu}.mk build/wasm32/gcc-testsuite/site.exp
build/wasm32/gcc-testsuite-tar/%.{dejagnu}.tar: build/wasm32/gcc-testsuite-make/%.{dejagnu}.mk build/wasm32/gcc-testsuite/site.exp
$(MAKE) -f $< build/wasm32/gcc-testsuite/$*.all || true
tar cf $@ build/wasm32/gcc-testsuite/$(dir $*)

Expand Down Expand Up @@ -1005,8 +1007,8 @@ artifact-push!:
$(MAKE) wasm/libm.wasm
$(MAKE) wasm/libstdc++.wasm
$(MAKE) artifacts artifact-timestamp
JS=$(PWD)/bin/js WASMDIR=$(PWD) $(MAKE) build/wasm32/gcc-testsuite/$*.{dejagnu}.tar
cp build/wasm32/gcc-testsuite/$*.{dejagnu}.tar artifacts/
JS=$(PWD)/bin/js WASMDIR=$(PWD) $(MAKE) build/wasm32/gcc-testsuite/tar/$*.{dejagnu}.tar
cp build/wasm32/gcc-testsuite/tar/$*.{dejagnu}.tar artifacts/

%.{dejanew}!: js/wasm32.js install/texinfo-bison-flex install/gcc-dependencies install/dejagnu | extracted/artifacts/toolchain.tar tools/bin/wasmrewrite tools/bin/wasmsect install/binfmt_misc/wasm install/binfmt_misc/elf32-wasm32 artifacts/libc.wasm artifacts/ld.wasm artifacts/libm.wasm subrepos/gcc/checkout! artifacts src/gcc
$(MAKE) artifacts/jsshell-linux-x86_64.zip
Expand Down

0 comments on commit 4650467

Please sign in to comment.