Skip to content

No longer need to symlink llvm-project #522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions common.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ def clone_repos():
process0.stdin.close()

assert process0.wait() == 0
symlink_llvm_project(workspace)


class Unreachable(Exception):
Expand Down Expand Up @@ -442,31 +441,6 @@ def check_execute(command, timeout=None,
raise ExecuteCommandFailure(command, returncode)


def symlink_llvm_project(workspace):
print("Create symlink for LLVM Project")
llvm_projects = ['clang',
'llvm',
'lldb',
'compiler-rt',
'libcxx',
'clang-tools-extra']
for project in llvm_projects:
src_path = os.path.join(workspace,
'llvm-project',
project)
dst_path = os.path.join(workspace, project)
if not os.path.islink(dst_path):
try:
os.symlink(src_path, dst_path)
except OSError as e:
if e.errno == errno.EEXIST:
print("File '%s' already exists. Remove it, so "
"update-checkout can create the symlink to the "
"llvm-monorepo." % dst_path)
else:
raise e


def git_submodule_update(path, stdout=sys.stdout, stderr=sys.stderr):
"""Perform a git submodule update operation on a path."""
command = ['git', '-C', path, 'submodule', 'update', '--init',
Expand Down