Skip to content

Commit e25042f

Browse files
committed
[LLVM Project] Symlink clang, llvm, compiler-rt, clang-tools-extra, and libcxx
1 parent a82629d commit e25042f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

utils/update_checkout/update_checkout/update_checkout.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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

410425
def 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)

0 commit comments

Comments
 (0)