mirror of
https://github.com/roc-lang/roc.git
synced 2024-10-27 02:40:53 +03:00
Enable more release optimizations
This commit is contained in:
parent
c08f6c34f9
commit
6dbc7a4db0
@ -24,3 +24,7 @@ members = [
|
|||||||
"cli"
|
"cli"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
# Optimizations based on https://deterministic.space/high-performance-rust.html
|
||||||
|
[profile.release]
|
||||||
|
lto = "fat"
|
||||||
|
codegen-units = 1
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
mkdir -p $HOME/.cargo
|
mkdir -p $HOME/.cargo
|
||||||
echo -e "[build]\nrustflags = [\"-C\", \"link-arg=-fuse-ld=lld\"]" > $HOME/.cargo/config
|
echo -e "[build]\nrustflags = [\"-C\", \"link-arg=-fuse-ld=lld\", \"-C\", \"target-cpu=native\"]" > $HOME/.cargo/config
|
||||||
|
|
||||||
ln -s /usr/bin/lld-8 /usr/local/bin/ld.lld
|
ln -s /usr/bin/lld-8 /usr/local/bin/ld.lld
|
||||||
|
Loading…
Reference in New Issue
Block a user