Rollup merge of #145121 - lambdageek:dist-must-keep-llvm-third-party-siphash, r=Kobzol
bootstrap: `x.py dist rustc-src` should keep LLVM's siphash Fixes rust-lang/rust#145117
This commit is contained in:
commit
92bdf9e8ee
1 changed files with 14 additions and 0 deletions
|
|
@ -925,6 +925,8 @@ fn copy_src_dirs(
|
|||
"llvm-project\\cmake",
|
||||
"llvm-project/runtimes",
|
||||
"llvm-project\\runtimes",
|
||||
"llvm-project/third-party",
|
||||
"llvm-project\\third-party",
|
||||
];
|
||||
if spath.contains("llvm-project")
|
||||
&& !spath.ends_with("llvm-project")
|
||||
|
|
@ -933,6 +935,18 @@ fn copy_src_dirs(
|
|||
return false;
|
||||
}
|
||||
|
||||
// Keep only these third party libraries
|
||||
const LLVM_THIRD_PARTY: &[&str] =
|
||||
&["llvm-project/third-party/siphash", "llvm-project\\third-party\\siphash"];
|
||||
if (spath.starts_with("llvm-project/third-party")
|
||||
|| spath.starts_with("llvm-project\\third-party"))
|
||||
&& !(spath.ends_with("llvm-project/third-party")
|
||||
|| spath.ends_with("llvm-project\\third-party"))
|
||||
&& !LLVM_THIRD_PARTY.iter().any(|path| spath.contains(path))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
const LLVM_TEST: &[&str] = &["llvm-project/llvm/test", "llvm-project\\llvm\\test"];
|
||||
if LLVM_TEST.iter().any(|path| spath.contains(path))
|
||||
&& (spath.ends_with(".ll") || spath.ends_with(".td") || spath.ends_with(".s"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue