cargo: performance flags in release

This commit is contained in:
Antoine Martin 2020-04-08 21:58:39 +02:00
parent 1e7d0a2807
commit 28df5d18a4
2 changed files with 6 additions and 0 deletions

2
.cargo/config Normal file
View file

@ -0,0 +1,2 @@
[build]
rustflags = ["-C", "target-cpu=native"]

View file

@ -4,3 +4,7 @@ members = [
"beevee",
"pathtracer",
]
[profile.release]
lto = true
codegen-units = 1