Add a run_bazelisk wrapper script for linux. (#4129)

I was considering making a "/bazel" alias for this, but I'm really on
the fence about whether that's a good choice. However, I do think this
is good to have to simplify installs.

Fixes #3071 and #3896
This commit is contained in:
Jon Ross-Perkins
2024-07-15 17:18:18 +00:00
committed by GitHub
parent 547c8a6b00
commit 407b9e4dcd
4 changed files with 55 additions and 11 deletions
+2 -3
View File
@@ -288,7 +288,6 @@ sudo apt update
# Install tools.
sudo apt install \
bazel \
clang \
libc++-dev \
libc++abi-dev \
@@ -303,7 +302,7 @@ Then you can build and run the explorer:
```shell
# Build and run the explorer.
$ bazel run //explorer -- ./explorer/testdata/print/format_only.carbon
$ ./scripts/run_bazelisk.py run //explorer -- ./explorer/testdata/print/format_only.carbon
```
And you can try out our toolchain which has a very early-stage compiler for
@@ -311,7 +310,7 @@ Carbon:
```shell
# Build and run the toolchain's help to get documentation on the command line.
$ bazel run //toolchain -- help
$ ./scripts/run_bazelisk.py run //toolchain -- help
```
For complete instructions, including installing dependencies on various