CMD + K

bazel-toolchain

Community

Helper script to generate a crosscompile toolchain for Bazel with the currently activated compiler settings.

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::bazel-toolchain

Usage Tracking

0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
5 / 8 versions selected
Downloads (Last 6 months): 0

Description

This package generates a crosstool toolchain for Bazel that uses the currently activated compilers / linker as defined by the environment variables. It does take various conda(-forge) specifics into account for this. In addition to generating a toolchain, it also sets various environment variables that need to be set for the toolchain to work. Especially you will need to pass in the correct ${TARGET_CPU} to ensure that cross-compiling also works.

In build.sh

source gen-bazel-toolchain bazel build --crosstooltop=//bazeltoolchain:toolchain --cpu ${TARGET_CPU} …

About

Summary

Helper script to generate a crosscompile toolchain for Bazel with the currently activated compiler settings.

Last Updated

Feb 20, 2026 at 20:42

License

BSD-3-Clause AND Apache-2.0

Total Downloads

82.4K

Version Downloads

100

Supported Platforms

macOS-64
linux-aarch64
macOS-arm64
linux-64
linux-ppc64le