2023-03-30 07:58:50 -05:00
|
|
|
include ../tools.mk
|
2018-03-29 14:59:13 -07:00
|
|
|
|
2019-08-16 22:08:01 -07:00
|
|
|
# only-wasm32-bare
|
2019-01-06 16:27:57 -05:00
|
|
|
|
2018-03-29 14:59:13 -07:00
|
|
|
all:
|
2018-04-06 14:22:13 -07:00
|
|
|
$(RUSTC) foo.rs -C lto -O --target wasm32-unknown-unknown --cfg a
|
2018-03-29 14:59:13 -07:00
|
|
|
wc -c < $(TMPDIR)/foo.wasm
|
|
|
|
[ "`wc -c < $(TMPDIR)/foo.wasm`" -lt "1024" ]
|
2018-04-06 14:22:13 -07: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 08:26:47 -07: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" ]
|