Skip to content

Commit

Permalink
chore(releasing): Slightly fiddle with release build options, contain…
Browse files Browse the repository at this point in the history
…er paths

This commit documents the release build options in Cargo.toml without
changing them. It also sets the container paths for builds to absolute paths,
resolving a build issue on my strict podman install.

Signed-off-by: Brian L. Troutwine [email protected]
  • Loading branch information
blt authored Mar 15, 2021
1 parent 81e045e commit 00b0422
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ path = "src/api/schema/gen.rs"
required-features = ["default-no-api-client"]

[profile.release]
lto = true
codegen-units = 1
lto = true # Optimize our binary at link stage.
codegen-units = 1 # Increases compile time but improves optmization alternatives.
debug = false # Do not include debug symbols in the executable.

[profile.bench]
debug = true
Expand Down
2 changes: 1 addition & 1 deletion scripts/cross/aarch64-unknown-linux-gnu.dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM rustembedded/cross:aarch64-unknown-linux-gnu
FROM docker.io/rustembedded/cross:aarch64-unknown-linux-gnu
2 changes: 1 addition & 1 deletion scripts/cross/aarch64-unknown-linux-musl.dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM rustembedded/cross:aarch64-unknown-linux-musl
FROM docker.io/rustembedded/cross:aarch64-unknown-linux-musl
2 changes: 1 addition & 1 deletion scripts/cross/armv7-unknown-linux-musleabihf.dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM rustembedded/cross:armv7-unknown-linux-musleabihf
FROM docker.io/rustembedded/cross:armv7-unknown-linux-musleabihf
2 changes: 1 addition & 1 deletion scripts/cross/x86_64-unknown-linux-gnu.dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM rustembedded/cross:x86_64-unknown-linux-gnu
FROM docker.io/rustembedded/cross:x86_64-unknown-linux-gnu
2 changes: 1 addition & 1 deletion scripts/cross/x86_64-unknown-linux-musl.dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM rustembedded/cross:x86_64-unknown-linux-musl
FROM docker.io/rustembedded/cross:x86_64-unknown-linux-musl

0 comments on commit 00b0422

Please sign in to comment.