File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/bootstrap/src/core/build_steps Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -925,6 +925,8 @@ fn copy_src_dirs(
925
925
"llvm-project\\ cmake" ,
926
926
"llvm-project/runtimes" ,
927
927
"llvm-project\\ runtimes" ,
928
+ "llvm-project/third-party" ,
929
+ "llvm-project\\ third-party" ,
928
930
] ;
929
931
if spath. contains ( "llvm-project" )
930
932
&& !spath. ends_with ( "llvm-project" )
@@ -933,6 +935,16 @@ fn copy_src_dirs(
933
935
return false ;
934
936
}
935
937
938
+ // Keep only these third party libraries
939
+ const LLVM_THIRD_PARTY : & [ & str ] =
940
+ & [ "llvm-project/third-party/siphash" , "llvm-project\\ third-party\\ siphash" ] ;
941
+ if ( spath. starts_with ( "llvm-project/third-party" )
942
+ || spath. starts_with ( "llvm-project\\ third-party" ) )
943
+ && !LLVM_THIRD_PARTY . iter ( ) . any ( |path| spath. contains ( path) )
944
+ {
945
+ return false ;
946
+ }
947
+
936
948
const LLVM_TEST : & [ & str ] = & [ "llvm-project/llvm/test" , "llvm-project\\ llvm\\ test" ] ;
937
949
if LLVM_TEST . iter ( ) . any ( |path| spath. contains ( path) )
938
950
&& ( spath. ends_with ( ".ll" ) || spath. ends_with ( ".td" ) || spath. ends_with ( ".s" ) )
You can’t perform that action at this time.
0 commit comments