summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorJonas Zohren <gitlab-jfowl-0ux98@sh14.de>2021-07-12 20:21:13 +0000
committerJonas Zohren <gitlab-jfowl-0ux98@sh14.de>2021-07-12 20:21:13 +0000
commit3fa09ff57de49ccbd5c0ad48fbcdf88837b743b2 (patch)
treef04c029ecb8238230d6fd3e938e84683934db633 /.gitlab-ci.yml
parent0080932aef8effc75ff6ca508eaa0fc3da23c16a (diff)
downloadconduit-3fa09ff57de49ccbd5c0ad48fbcdf88837b743b2.zip
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
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2fb9d54..424dc96 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -63,6 +63,7 @@ test:cargo:
# Set some cargo tuning here, because targets overwrite the 'variables'
- "export CARGO_INCREMENTAL=true"
- "export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=16"
+ - "export CARGO_PROFILE_RELEASE_LTO=thin"
- time cargo build --target $TARGET --release
- 'mv "target/$TARGET/release/conduit" "conduit-$TARGET"'
artifacts: