diff --git a/Cargo.toml b/Cargo.toml index 7033f0bdcc883096e80a8b4a426006514764f18e..42515b104c23d9b439972ac2d0d268895ffb91fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -205,6 +205,7 @@ yamux = { opt-level = 3 } zeroize = { opt-level = 3 } [profile.release] +lto = "thin" # Substrate runtime requires unwinding. panic = "unwind" diff --git a/docker/Dockerfile b/docker/Dockerfile index 3683f585c87478d8134446f362c72b8597b34675..9f96d0330eb01467e820d35d4199fe7e7a1f4aa3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -27,7 +27,6 @@ RUN apt-get update && \ # build duniter ARG debug=0 RUN if [ "$debug" = 0 ]; then \ - echo "CARGO_PROFILE_RELEASE_LTO=true; export CARGO_PROFILE_RELEASE_LTO" >>/root/dynenv && \ echo "CARGO_OPTIONS=--release" >>/root/dynenv && \ echo "TARGET_FOLDER=release" >>/root/dynenv; \ else \