2022-08-22 19:00:00 -05:00
|
|
|
include ../../run-make-fulldeps/tools.mk
|
2018-03-29 16:59:13 -05:00
|
|
|
|
2019-08-17 00:08:01 -05:00
|
|
|
# only-wasm32-bare
|
2019-01-06 15:27:57 -06:00
|
|
|
|
2018-03-29 16:59:13 -05:00
|
|
|
all:
|
2018-04-06 16:22:13 -05:00
|
|
|
$(RUSTC) foo.rs -C lto -O --target wasm32-unknown-unknown --cfg a
|
2018-03-29 16:59:13 -05:00
|
|
|
wc -c < $(TMPDIR)/foo.wasm
|
|
|
|
[ "`wc -c < $(TMPDIR)/foo.wasm`" -lt "1024" ]
|
2018-04-06 16:22:13 -05:00
|
|
|
$(RUSTC) foo.rs -C lto -O --target wasm32-unknown-unknown --cfg b
|
|
|
|
wc -c < $(TMPDIR)/foo.wasm
|
|
|
|
[ "`wc -c < $(TMPDIR)/foo.wasm`" -lt "5120" ]
|
|
|
|
$(RUSTC) foo.rs -C lto -O --target wasm32-unknown-unknown --cfg c
|
|
|
|
wc -c < $(TMPDIR)/foo.wasm
|
|
|
|
[ "`wc -c < $(TMPDIR)/foo.wasm`" -lt "5120" ]
|
2018-10-28 10:26:47 -05:00
|
|
|
$(RUSTC) foo.rs -C lto -O --target wasm32-unknown-unknown --cfg d
|
|
|
|
wc -c < $(TMPDIR)/foo.wasm
|
|
|
|
[ "`wc -c < $(TMPDIR)/foo.wasm`" -lt "5120" ]
|