chore: include custom dev build profile

This commit is contained in:
Erica Marigold 2023-08-24 21:03:09 +05:30 committed by GitHub
parent 603cc10b42
commit c5f1b40bde
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,6 +53,34 @@ opt-level = "z"
strip = true
lto = true
# Profile for building the dev binary, with the following options set:
#
# 1. Disables link time optimization to speed up builds
# 2. Does not strip the binary to reduce size
# 3. Increases the codegen units to reduce
# time taken for compilation, allowing LLVM to
# process the units in parallel
# 4. Unwind panic to avoid breaking Lune APIs
# 5. Disables any optimizations
# 6. Incremental build to improve compile times
# 7. Allows for overflow checks explicitly
# 8. Allows for debug assertions
# 9. Disables hardcoded runtime search paths for
# linked libraries
#
[profile.dev]
lto = "off"
strip = "none"
codegen-units = 256
panic = "unwind"
opt-level = 0
incremental = true
overflow-checks = true
debug-assertions = true
debug = true
rpath = false
# All of the dependencies for Lune.
#
# Dependencies are categorized as following: