Skip to content
Snippets Groups Projects
Commit d42aac05 authored by Gilles Filippini's avatar Gilles Filippini
Browse files

build (docker): CARGO_PROFILE_RELEASE_LTO="true"

Improve performances significantly for the generated code. This is a must
have when building for release.
parent 782f772d
No related branches found
No related tags found
1 merge request!7build: docker image and compose file
...@@ -28,6 +28,7 @@ COPY . . ...@@ -28,6 +28,7 @@ COPY . .
# build duniter # build duniter
ARG threads=1 ARG threads=1
RUN source ~/.cargo/env && \ RUN source ~/.cargo/env && \
CARGO_PROFILE_RELEASE_LTO="true" \
RUSTFLAGS="-C target-feature=-crt-static" \ RUSTFLAGS="-C target-feature=-crt-static" \
cargo build --release -j $threads cargo build --release -j $threads
......
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