From 9815bb6e317e260764dbbb7bdf6040e81e7bd126 Mon Sep 17 00:00:00 2001 From: Brandur Date: Mon, 29 May 2017 12:21:49 -0700 Subject: [PATCH] Remove the `-C lto` directive This doesn't seem to apply to dylibs and is failing the release in Travis. --- ci/before_deploy.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ci/before_deploy.sh b/ci/before_deploy.sh index 2dc3f89..64f92df 100644 --- a/ci/before_deploy.sh +++ b/ci/before_deploy.sh @@ -17,7 +17,9 @@ main() { test -f Cargo.lock || cargo generate-lockfile - cross rustc --target $TARGET --release -- -C lto + # The template uses `-- -C lto`, but this only applies to executables, + # cdylibs, and static libraries. + cross rustc --target $TARGET --release # Naming will be .dylib on Mac OS and .so elsewhere. cp target/$TARGET/release/libredis_cell.* $stage/