mirror of https://github.com/bobwen-dev/hunter
enable lto and limit code generation units
This increases performance and generates a smaller binary. It makes compiling a bit slower, but the trade-off is worth it in the case of hunter.
This commit is contained in:
parent
e46c2532f8
commit
b1a3f00812
|
@ -33,6 +33,7 @@ osstrtools = "0.1"
|
|||
pathbuftools = "0.1"
|
||||
|
||||
|
||||
#[profile.release]
|
||||
#debug = true
|
||||
#lto = false
|
||||
# These options increase performance and generate a smaller binary
|
||||
[profile.release]
|
||||
lto = true
|
||||
codegen-units = 1
|
||||
|
|
Loading…
Reference in New Issue