Skip to content

Commit 2abc12d

Browse files
committed
Fix y.rs build --sysroot llvm
1 parent 405642b commit 2abc12d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_system/build_sysroot.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ pub(crate) fn build_sysroot(
9191
{
9292
let file = file.unwrap().path();
9393
let file_name_str = file.file_name().unwrap().to_str().unwrap();
94-
if file_name_str.contains("rustc_")
94+
if (file_name_str.contains("rustc_")
95+
&& !file_name_str.contains("rustc_std_workspace_")
96+
&& !file_name_str.contains("rustc_demangle"))
9597
|| file_name_str.contains("chalk")
9698
|| file_name_str.contains("tracing")
9799
|| file_name_str.contains("regex")

0 commit comments

Comments
 (0)