summaryrefslogtreecommitdiff
path: root/tools/third_party.py
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-03-04 20:24:51 -0800
committerBert Belder <bertbelder@gmail.com>2019-03-04 21:01:52 -0800
commit860be9f0de0713150030428db44d326831ce6ad2 (patch)
tree25ee003816b862f9478fa41294058dbbf52627b7 /tools/third_party.py
parent25359bcc03b2c819d6573f273c8892a6c5a978ee (diff)
tools: remove fix_symlinks() function
This fixes an issue on Windows that causes build to fails when fix_symlinks() is called concurrently with another build step. It is also no longer necessary, since recent versions of git know how to properly create symbolic links on checkout.
Diffstat (limited to 'tools/third_party.py')
-rw-r--r--tools/third_party.py32
1 files changed, 1 insertions, 31 deletions
diff --git a/tools/third_party.py b/tools/third_party.py
index e08e8307d..133f265c2 100644
--- a/tools/third_party.py
+++ b/tools/third_party.py
@@ -6,8 +6,7 @@ import os
import site
import sys
from os import path
-from util import add_env_path, find_exts, make_env, remove_and_symlink, rmtree
-from util import root_path, run
+from util import add_env_path, find_exts, make_env, rmtree, root_path, run
from tempfile import mkdtemp
@@ -89,35 +88,6 @@ def google_env(env=None, merge_env=None, depot_tools_path_=depot_tools_path):
return env
-def fix_symlinks():
- # Ensure the third_party directory exists.
- try:
- os.makedirs(third_party_path)
- except OSError:
- pass
-
- # Make symlinks to Yarn metadata living in the root repo.
- remove_and_symlink("../package.json", tp("package.json"))
-
- # TODO(ry) Is it possible to remove these symlinks?
- remove_and_symlink("v8/third_party/googletest", tp("googletest"), True)
- remove_and_symlink("v8/third_party/jinja2", tp("jinja2"), True)
- remove_and_symlink("v8/third_party/llvm-build", tp("llvm-build"), True)
- remove_and_symlink("v8/third_party/markupsafe", tp("markupsafe"), True)
- remove_and_symlink("../../build", tp("v8/build"), True)
-
- # On Windows, git doesn't create the right type of symlink if the symlink
- # and it's target are in different repos. Here we fix the symlinks that
- # exist in the root repo while their target is in the third_party repo.
- remove_and_symlink("third_party/node_modules", root("node_modules"), True)
- remove_and_symlink("third_party/v8/buildtools", root("buildtools"), True)
- remove_and_symlink("third_party/v8/build_overrides",
- root("build_overrides"), True)
- remove_and_symlink("third_party/v8/testing", root("testing"), True)
- remove_and_symlink("../third_party/v8/tools/clang", root("tools/clang"),
- True)
-
-
# Run Yarn to install JavaScript dependencies.
def run_yarn():
run(["yarn", "install"], cwd=third_party_path)