Toggle navigation
GitHub
Getting Started
Using Bazel
Extending Bazel
Contributing
Blog
Navigation
Version: 5.1.1
main
5.4.1
5.4.0
5.3.1
5.3.0
5.2.0
5.1.1
5.1.0
5.0.0
4.2.4
4.2.3
4.2.2
4.2.1
4.2.0
4.1.0
4.0.0
3.7.0
3.6.0
3.5.1
3.4.0
3.3.0
3.2.0
3.1.0
3.0.0
2.2.0
2.1.0
2.0.0
1.2.0
1.1.0
1.0.0
0.29.1
0.29.0
0.28.0
0.27.0
0.26.0
0.25.0
0.24.0
0.23.0
0.22.0
0.21.0
0.20.0
0.19.2
0.19.1
0.18.1
0.17.2
0.17.1
Guides
Running Bazel
Optimizing Memory
Building on Windows
Best practices
Sharing BUILD Variables
Query for Dependencies
Query Quickstart
Query Reference
Query Configured Targets Reference
Query Action Graph Reference
Remote execution
Overview
Guidelines
Troubleshooting
Troubleshooting with Bazel Sandbox
Non-Hermetic WORKSPACE Rules
Debugging Remote Cache Hits
Remote Execution and CI
Dynamic Execution
Remote caching
Overview
Debugging
Reference
Commands and Options
Build Encyclopedia
Test Encyclopedia
Command Line Reference
BUILD Files
Functions
Common Rule Definitions
"Make" Variables
BUILD Style Guide
Build Event Protocol
Overview
BEP examples
BEP glossary
Output Directory Layout
Platforms
Execution Groups
Toolchains
Extensions
>
API reference
> ToolchainContext
ToolchainContext
Holds toolchains available for a particular exec group. Toolchain targets are accessed by indexing with the toolchain type, as in
context["//pkg:my_toolchain_type"]
.
Create issue