|
|
# Writing self configuring C/C++ Toolchains
|
|
|
Notice: This article is under construction, some sections may not be complete. This notice will be removed as it exits it's initial draft.
|
|
|
_____
|
|
|
## Background
|
|
|
The purpose of this article is to detail how to properly write Bazel C/C++ toolchains.
|
|
|
|
|
|
Many resources online will teach you how to write Bazel toolchains by hardcoding paths in a completely non-portable way. While this method is more beginner friendly, it is completely impractical for use by others who may not have your exact version of compiler, and who may have installed their tools in different locations.
|
|
|
|
|
|
Rather, this guide presents a method of toolchain configuration which mimics the way that Bazel natively configures it's host toolchain.
|
|
|
|
|
|
## Topology
|
|
|
### Toolchain Design
|
|
|
### Toolchain Selection |
|
|
\ No newline at end of file |