Skip to content

Commit df76ee0

Browse files
committed
Add support for stdlibs that were compiled with -Zno-embed-metadata
As of nightly 2026-01-14 the rust stdlib is compiled using -Zno-embed-metadata. This removes the rmeta data from .rlib object files. Fixing this means we need to include the .rmeta files in the stdlib file group. Breaking change in rustc: rust-lang/rust#145343 Context on -Zno-embed-metadata: rust-lang/cargo#15378
1 parent af24d27 commit df76ee0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

rust/private/repository_utils.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ rust_stdlib_filegroup(
280280
srcs = glob(
281281
[
282282
"lib/rustlib/{target_triple}/lib/*.rlib",
283+
"lib/rustlib/{target_triple}/lib/*.rmeta",
283284
"lib/rustlib/{target_triple}/lib/*{dylib_ext}*",
284285
"lib/rustlib/{target_triple}/lib/*{staticlib_ext}",
285286
"lib/rustlib/{target_triple}/lib/self-contained/**",

0 commit comments

Comments
 (0)