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
2974d744a6
commit
392e6c0128
|
@ -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