build docker image with lto

This commit is contained in:
Scott Lamb
2022-04-14 10:53:03 -07:00
parent fd7438dd28
commit cdfb61fb35
3 changed files with 6 additions and 1 deletions

View File

@@ -28,7 +28,7 @@ ln -s /cargo-cache/{git,registry} ~/.cargo
cd src/server
time cargo test
time cargo build --release
time cargo build --profile=release-lto
sudo install -m 755 ~/moonfire-nvr /usr/local/bin/moonfire-nvr
ls -laFR /cargo-cache > /docker-build-debug/build-server/cargo-cache-after