diff options
| author | Joel Martin <github@martintribe.org> | 2015-03-04 11:25:21 -0600 |
|---|---|---|
| committer | Joel Martin <github@martintribe.org> | 2015-03-04 11:25:21 -0600 |
| commit | 434516e0d172904e06b05f6dee83ce2e7859b950 (patch) | |
| tree | 78f385c26fe410d77405ac2fd979d2f794701ee9 /rust | |
| parent | 6cee207674783a1707c3e3c4dcec575112ba1c81 (diff) | |
| download | mal-434516e0d172904e06b05f6dee83ce2e7859b950.tar.gz mal-434516e0d172904e06b05f6dee83ce2e7859b950.zip | |
Rust: build with --release. 10X performance boost!
Diffstat (limited to 'rust')
| -rw-r--r-- | rust/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/Makefile b/rust/Makefile index da8a6c6..fa1edc9 100644 --- a/rust/Makefile +++ b/rust/Makefile @@ -11,18 +11,18 @@ SOURCES = $(SOURCES_BASE) $(SOURCES_LISP) SRCS = step1_read_print.rs step2_eval.rs step3_env.rs \ step4_if_fn_do.rs step5_tco.rs step6_file.rs step7_quote.rs \ step8_macros.rs step9_try.rs stepA_mal.rs -BINS = $(SRCS:%.rs=target/%) +BINS = $(SRCS:%.rs=target/release/%) ##################### all: mal mal: ${SOURCES_BASE} $(word $(words ${SOURCES_LISP}),${SOURCES_LISP}) - cargo build + cargo build --release cp $(word $(words ${BINS}),${BINS}) $@ -#$(BINS): target/%: src/%.rs -# cargo build $* +#$(BINS): target/release/%: src/%.rs +# cargo build --release $* clean: cargo clean |
