Clang dynamically supports the generation of code for any target, as seen in the previous sections. However, there are reasons to generate a target-dedicated Clang cross-compiler:
The LLVM configure system has the following options that assist in cross-compiler generation:
--target: This option specifies the default target triple that the Clang cross-compiler generates code for. This relates to the target, host, and build concepts we defined earlier. The
--buildoptions are also available, but these are guessed by the configure ...