From 2abc12daada0f7a12285902eb3faacd279316e11 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Mon, 26 Jul 2021 16:11:24 +0200 Subject: [PATCH] Fix y.rs build --sysroot llvm --- build_system/build_sysroot.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_system/build_sysroot.rs b/build_system/build_sysroot.rs index 9fb88c279613f..642abc41f45a7 100644 --- a/build_system/build_sysroot.rs +++ b/build_system/build_sysroot.rs @@ -91,7 +91,9 @@ pub(crate) fn build_sysroot( { let file = file.unwrap().path(); let file_name_str = file.file_name().unwrap().to_str().unwrap(); - if file_name_str.contains("rustc_") + if (file_name_str.contains("rustc_") + && !file_name_str.contains("rustc_std_workspace_") + && !file_name_str.contains("rustc_demangle")) || file_name_str.contains("chalk") || file_name_str.contains("tracing") || file_name_str.contains("regex")