Expand description
C-compiler probing and detection.
This module will fill out the cc and cxx maps of Build by looking for
C and C++ compilers for each target configured. A compiler is found through
a number of vectors (in order of precedence)
- Configuration via
target.$target.ccinconfig.toml. - Configuration via
target.$target.android-ndkinconfig.toml, if applicable - Special logic to probe on OpenBSD
- The
CC_$targetenvironment variable. - The
CCenvironment variable. - โccโ
Some of this logic is implemented here, but much of it is farmed out to the
cc crate itself, so we end up having the same fallbacks as there.
Similar logic is then used to find a C++ compiler, just some s/cc/c++/ is
used.
It is intended that after this module has run no C/C++ compiler will ever be probed for. Instead the compilers found here will be used for everything.
Enumsยง
- Language ๐
- The target programming language for a native compiler.
Functionsยง
- cc2ar ๐
- default_
compiler ๐ - find
- find_
target - ndk_
compiler ๐ - new_
cc_ ๐build