fork/rust
git clone https://git.julia.blue/fork/rust
b8cedc00407
1.42.0
1-include ../tools.mk 2 3all: noparam bool_true bool_false thin fat 4 5noparam: 6 $(RUSTC) lib.rs 7 $(RUSTC) main.rs -C lto 8 $(call RUN,main) 9 10bool_true: 11 $(RUSTC) lib.rs 12 $(RUSTC) main.rs -C lto=yes 13 $(call RUN,main) 14 15 16bool_false: 17 $(RUSTC) lib.rs 18 $(RUSTC) main.rs -C lto=off 19 $(call RUN,main) 20 21thin: 22 $(RUSTC) lib.rs 23 $(RUSTC) main.rs -C lto=thin 24 $(call RUN,main) 25 26fat: 27 $(RUSTC) lib.rs 28 $(RUSTC) main.rs -C lto=fat 29 $(call RUN,main) 30