roc/Cargo.toml
Brendan Hansknecht 7a6c2cb2bc Switch to thin lto for faster compilation
Also, makes the bench and release profile match eachother so that
tests built in release mode don't need to recompile everything compared
to regular release builds.
2021-02-20 11:06:46 -08:00

41 lines
798 B
TOML

[workspace]
members = [
"compiler/region",
"compiler/collections",
"compiler/module",
"compiler/parse",
"compiler/can",
"compiler/problem",
"compiler/types",
"compiler/builtins",
"compiler/constrain",
"compiler/unify",
"compiler/solve",
"compiler/reporting",
"compiler/fmt",
"compiler/mono",
"compiler/load",
"compiler/gen",
"compiler/gen_dev",
"compiler/build",
"compiler/arena_pool",
"vendor/ena",
"vendor/pathfinding",
"vendor/pretty",
"editor",
"cli",
"roc_std",
"docs"
]
# Optimizations based on https://deterministic.space/high-performance-rust.html
[profile.release]
lto = "thin"
codegen-units = 1
# debug = true # enable when profiling
[profile.bench]
lto = "thin"
codegen-units = 1