mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 07:09:22 +00:00
76552d595d
For clang, this allows passing -target <triple> to the compiler, and for qcc, -V<arch> using toolchain files containing something like set(triple arm-linux-gnueabihf) set(CMAKE_C_COMPILER "/usr/bin/clang") set(CMAKE_C_COMPILER_TARGET ${triple}) set(CMAKE_CXX_COMPILER "/usr/bin/clang++") set(CMAKE_CXX_COMPILER_TARGET ${triple}) or set(arch gcc_ntoarmv7le) set(CMAKE_C_COMPILER /opt/qnx650/host/linux/x86/usr/bin/qcc) set(CMAKE_C_COMPILER_TARGET ${arch}) set(CMAKE_CXX_COMPILER /opt/qnx650/host/linux/x86/usr/bin/QCC) set(CMAKE_CXX_COMPILER_TARGET ${arch}) Both clang and qcc are inherently cross compiler( driver)s. When cross-compiling with clang, use the CMAKE_${lang}_COMPILER_TARGET as the _CMAKE_TOOLCHAIN_PREFIX to find the appropriate binutils. When cross-compiling with QNX qcc, use the CMAKE_${lang}_COMPILER_TARGET to set the appropriate _CMAKE_TOOLCHAIN_PREFIX. |
||
---|---|---|
.. | ||
ccmake.1.rst | ||
cmake-commands.7.rst | ||
cmake-developer.7.rst | ||
cmake-generator-expressions.7.rst | ||
cmake-generators.7.rst | ||
cmake-gui.1.rst | ||
cmake-language.7.rst | ||
cmake-modules.7.rst | ||
cmake-policies.7.rst | ||
cmake-properties.7.rst | ||
cmake-variables.7.rst | ||
cmake.1.rst | ||
cpack.1.rst | ||
ctest.1.rst | ||
LINKS.txt | ||
OPTIONS_BUILD.txt | ||
OPTIONS_HELP.txt |