Skip to content

Commit

Permalink
chore: profile.release.rustflags = ["-Zshare-generics=off"]
Browse files Browse the repository at this point in the history
Work-around for [rust-lang/rust#108853][1] suggested [here][2]. Fixes
undefined symbol errors in the `report-size` CI workflow.

[1]: rust-lang/rust#108853
[2]: rust-lang/rust#108853 (comment)
  • Loading branch information
yvt committed Mar 18, 2023
1 parent dbf9798 commit ab05db4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
cargo-features = ["profile-rustflags"]

[workspace]
members = [
"examples/basic",
Expand Down Expand Up @@ -117,3 +119,8 @@ rev = "2a74b62c26724ff9c67e4e3ad05378a1af53f195"

[profile.release]
debug = true

# FIXME: Work-around for undefined symbol errors that occur with the
# combination of `-Zbuild-std`, `opt-level = "s"`, and `lto = true`
# <https://github.com/rust-lang/rust/issues/108853>
rustflags = ["-Zshare-generics=off"]

0 comments on commit ab05db4

Please sign in to comment.