Skip to content
Snippets Groups Projects
Commit d5695fb9 authored by Timo Kösters's avatar Timo Kösters
Browse files

Merge branch 'only-set-max-optimzations-in-ci' into 'master'

Only apply max. optimizations in CI builds.

See merge request famedly/conduit!162
parents 72dd95f5 b6e755f6
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,9 @@ variables:
- cargohome
- target/
key: "build_cache-$TARGET-release"
variables:
CARGO_PROFILE_RELEASE_LTO=true
CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1
before_script:
- 'echo "Building for target $TARGET"'
- 'mkdir -p cargohome && CARGOHOME="cargohome"'
......
......@@ -124,16 +124,15 @@ lto = 'thin'
incremental = true
[profile.release]
lto = true
lto = 'thin'
incremental = true
codegen-units = 1
codegen-units=32
# If you want to make flamegraphs, enable debug info:
# debug = true
# For releases also try to max optimizations for dependencies:
[profile.release.build-override]
opt-level = 3
codegen-units = 1
[profile.release.package."*"]
opt-level = 3
codegen-units = 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment