5096967ecd
Clang can compile code, but uses the gcc tools for other tasks such as linking. The -gcc-toolchain option can be used for that, but generalize so that other compilers can be treated the same. If such a location is specified, use it as a hint for finding the binutils executables.
14 lines
595 B
ReStructuredText
14 lines
595 B
ReStructuredText
CMAKE_<LANG>_COMPILER_EXTERNAL_TOOLCHAIN
|
|
----------------------------------------
|
|
|
|
The external toolchain for cross-compiling, if supported.
|
|
|
|
Some compiler toolchains do not ship their own auxilliary utilities such as
|
|
archivers and linkers. The compiler driver may support a command-line argument
|
|
to specify the location of such tools. CMAKE_<LANG>_COMPILER_EXTERNAL_TOOLCHAIN
|
|
may be set to a path to a path to the external toolchain and will be passed
|
|
to the compiler driver if supported.
|
|
|
|
This variable may only be set in a toolchain file specified by
|
|
the ``CMAKE_TOOLCHAIN_FILE`` variable.
|