mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-08-19 07:54:40 +02:00
Use thin-lto [1] for "better" release builds.
This performs a rather quick variant of Link Time Optimization [2]. It should add negligible build time but also more optimized binaries. [1]: https://doc.rust-lang.org/cargo/reference/profiles.html#lto [2]: https://llvm.org/docs/LinkTimeOptimization.html
This commit is contained in:
parent
0080932aef
commit
3fa09ff57d
|
@ -63,6 +63,7 @@ test:cargo:
|
||||||
# Set some cargo tuning here, because targets overwrite the 'variables'
|
# Set some cargo tuning here, because targets overwrite the 'variables'
|
||||||
- "export CARGO_INCREMENTAL=true"
|
- "export CARGO_INCREMENTAL=true"
|
||||||
- "export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16"
|
- "export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16"
|
||||||
|
- "export CARGO_PROFILE_RELEASE_LTO=thin"
|
||||||
- time cargo build --target $TARGET --release
|
- time cargo build --target $TARGET --release
|
||||||
- 'mv "target/$TARGET/release/conduit" "conduit-$TARGET"'
|
- 'mv "target/$TARGET/release/conduit" "conduit-$TARGET"'
|
||||||
artifacts:
|
artifacts:
|
||||||
|
|
Loading…
Reference in a new issue