mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
39818135d3
We don't want to run Bazel through Yarn or NodeJS as that could mean that Bazel runs with limited memory.
11 lines
283 B
Bash
Executable File
11 lines
283 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
bazelBin=$(node -p "require('@bazel/bazel').getNativeBinary()")
|
|
|
|
# Provide the bazel binary globally. We don't want to access the binary
|
|
# through Node as it could result in limited memory.
|
|
sudo chmod a+x ${bazelBin}
|
|
sudo ln -fs ${bazelBin} /usr/local/bin/bazel
|