Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Toolchain

boehnsins edited this page Apr 24, 2020 · 3 revisions

How to install bazelisk

Bazelisk is a bazel wrapper, which provides an easy way to switch between different bazel versions, without uninstalling you local bazel installation. For more information take a look at the Github repository

Linux

The following manual explains how to install bazelisk on a ubuntu host. This should be the same on any other Debian based systems. Some things may differ if you're using a different Linux distribution. In that case please look up your errors and add them to the troubleshooting section.

First Step: Install go

The installation slightly differs between Ubuntu versions. Please take a look here. The first paragraph on Ubuntu 19.04(LTS) should be fine.

Second Step: Install Bazelisk

  • run go get github.com/bazelbuild/bazelisk
  • add the following to your path variable: export PATH=$PATH:$(go env GOPATH)/bin
    • This changes depending on wheter you want to use bazelisk only for your user, or systemwide.
  • you may also want to symlink bazelisk to bazel, but that's not really neccessary and for advanced usage

macOS

How to compile for ARM MCUs

Install the Toolchain

  • apt update
  • apt install gcc-arm-none-eabi
  • apt install libnewlib-arm-none-eabi
  • create Toolchain and Platform definitions for your project (pending feature request)

Troubleshooting

src/main/tools/process-wrapper-legacy.cc:58: "execvp(None, ...)": No such file or directory

do bazelisk clean --expunge and try to build again