Skip to content

Commit ab05db4

Browse files
committed
chore: profile.release.rustflags = ["-Zshare-generics=off"]
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)
1 parent dbf9798 commit ab05db4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Cargo.toml

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
cargo-features = ["profile-rustflags"]
2+
13
[workspace]
24
members = [
35
"examples/basic",
@@ -117,3 +119,8 @@ rev = "2a74b62c26724ff9c67e4e3ad05378a1af53f195"
117119

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

0 commit comments

Comments
 (0)