Skip to content

Commit cb50207

Browse files
authored
Merge pull request #522 from apple/remove-symlink-llvm-project
No longer need to symlink llvm-project
2 parents 36e1f13 + 029fecc commit cb50207

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

common.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ def clone_repos():
282282
process0.stdin.close()
283283

284284
assert process0.wait() == 0
285-
symlink_llvm_project(workspace)
286285

287286

288287
class Unreachable(Exception):
@@ -442,31 +441,6 @@ def check_execute(command, timeout=None,
442441
raise ExecuteCommandFailure(command, returncode)
443442

444443

445-
def symlink_llvm_project(workspace):
446-
print("Create symlink for LLVM Project")
447-
llvm_projects = ['clang',
448-
'llvm',
449-
'lldb',
450-
'compiler-rt',
451-
'libcxx',
452-
'clang-tools-extra']
453-
for project in llvm_projects:
454-
src_path = os.path.join(workspace,
455-
'llvm-project',
456-
project)
457-
dst_path = os.path.join(workspace, project)
458-
if not os.path.islink(dst_path):
459-
try:
460-
os.symlink(src_path, dst_path)
461-
except OSError as e:
462-
if e.errno == errno.EEXIST:
463-
print("File '%s' already exists. Remove it, so "
464-
"update-checkout can create the symlink to the "
465-
"llvm-monorepo." % dst_path)
466-
else:
467-
raise e
468-
469-
470444
def git_submodule_update(path, stdout=sys.stdout, stderr=sys.stderr):
471445
"""Perform a git submodule update operation on a path."""
472446
command = ['git', '-C', path, 'submodule', 'update', '--init',

0 commit comments

Comments
 (0)