Skip to content

Commit 50bc830

Browse files
Add *.rmeta to rustc_lib rule (#3290)
It is already possible to download rustc-dev component when configuring the rust toolchain: ``` rust.toolchain( edition = "2021", dev_components = True, # <<<---- versions = [ "nightly/2024-11-22", ], ) ``` rustc-dev component contains many rmeta files: ``` . ├── lib │   └── rustlib │   ├── aarch64-apple-darwin │   │   └── lib ... │   │   ├── librustc_ast_ir-bceb4101f84f6e22.rmeta │   │   ├── librustc_ast_lowering-746f02f99c608c8b.rmeta │   │   ├── librustc_ast_passes-f4f030429e2f817e.rmeta │   │   ├── librustc_ast_pretty-f6791eb50adc110c.rmeta │   │   ├── librustc_ast-cec2ef74e07d23e5.rmeta │   │   ├── librustc_attr-2aa44e3a7f3d72c2.rmeta │   │   ├── librustc_baked_icu_data-113883b3d0ba511c.rmeta │   │   ├── librustc_borrowck-30a7df7b30f832e1.rmeta ... ``` However, these rmeta files aren't symlinked into rustc sysroot. This PR adds rmeta files into rustc sysroot. Co-authored-by: UebelAndre <github@uebelandre.com>
1 parent 91a2787 commit 50bc830

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rust/private/repository_utils.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ filegroup(
4646
"lib/rustlib/{target_triple}/codegen-backends/*{dylib_ext}",
4747
"lib/rustlib/{target_triple}/bin/rust-lld{binary_ext}",
4848
"lib/rustlib/{target_triple}/lib/*{dylib_ext}*",
49+
"lib/rustlib/{target_triple}/lib/*.rmeta",
4950
],
5051
allow_empty = True,
5152
),

0 commit comments

Comments
 (0)