Skip to content

Commit

Permalink
Merge pull request #117 from cgwalters/update-build-profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrero authored Aug 23, 2023
2 parents 512dedd + 2f8c2b1 commit 4b9728c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,17 @@ members = ["cli", "lib", "xtask"]
opt-level = 1 # No optimizations are too slow for us.

[profile.release]
# RPMs/debs/etc want debuginfo by default
lto = "thin"
# We use FFI so this is safest
panic = "abort"
# We assume we're being delivered via e.g. RPM which supports split debuginfo
debug = true

[profile.releaselto]
codegen-units = 1
inherits = "release"
lto = "yes"

# See https://github.com/coreos/cargo-vendor-filterer
[workspace.metadata.vendor-filter]
# For now we only care about tier 1+2 Linux. (In practice, it's unlikely there is a tier3-only Linux dependency)
Expand Down

0 comments on commit 4b9728c

Please sign in to comment.