File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
utils/update_checkout/update_checkout Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -406,6 +406,21 @@ def skip_list_for_platform(config):
406406
407407 return skip_list
408408
409+ def symlink_llvm_monorepo (args ):
410+ print ("Create symlink for LLVM Project" )
411+ llvm_projects = ['clang' ,
412+ 'llvm' ,
413+ 'lldb' ,
414+ 'compiler-rt' ,
415+ 'libcxx' ,
416+ 'clang-tools-extra' ]
417+ for project in llvm_projects :
418+ src_path = os .path .join (args .source_root ,
419+ 'llvm-project' ,
420+ project )
421+ dst_path = os .path .join (args .source_root , project )
422+ if not os .path .islink (dst_path ):
423+ os .symlink (src_path , dst_path )
409424
410425def main ():
411426 freeze_support ()
@@ -554,5 +569,6 @@ def main():
554569 if fail_count > 0 :
555570 print ("update-checkout failed, fix errors and try again" )
556571 else :
572+ symlink_llvm_monorepo (args )
557573 print ("update-checkout succeeded" )
558574 sys .exit (fail_count )
You can’t perform that action at this time.
0 commit comments