From fcb87472686481382b915c8de653f7f77d69b49e Mon Sep 17 00:00:00 2001 From: Praveen Perera Date: Sat, 5 Sep 2020 21:39:28 -0400 Subject: [PATCH 1/2] Fix for breaking builds on > rust 1.45 ref: https://github.com/rust-lang/rust/issues/71848 --- ci/before_deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index 026dc28..3b8dccb 100644 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -18,7 +18,7 @@ main() { test -f Cargo.lock || cargo generate-lockfile # TODO Update this to build the artifacts that matter to you - cross rustc --bin hello --target $TARGET --release -- -C lto + cross rustc --bin hello --target $TARGET --release # TODO Update this to package the right artifacts cp target/$TARGET/release/hello $stage/ From 07fabf1ba076966157bdf5c3679afbbc0b5e02f4 Mon Sep 17 00:00:00 2001 From: Praveen Perera Date: Wed, 13 Jan 2021 17:28:32 -0500 Subject: [PATCH 2/2] Update ci/before_deploy.sh Co-authored-by: Ximo Guanter --- ci/before_deploy.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index 3b8dccb..bffedc0 100644 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -18,7 +18,8 @@ main() { test -f Cargo.lock || cargo generate-lockfile # TODO Update this to build the artifacts that matter to you - cross rustc --bin hello --target $TARGET --release + export CARGO_PROFILE_RELEASE_LTO=true + cross build --bin hello --target $TARGET --release # TODO Update this to package the right artifacts cp target/$TARGET/release/hello $stage/