You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[docs] Prefer setting LLVM_HOST_TRIPLE instead of LLVM_DEFAULT_TARGET_TRIPLE and LLVM_TARGET_ARCH
Setting LLVM_HOST_TRIPLE propagates the information to a few more
places than if only setting LLVM_TARGET_ARCH and
LLVM_DEFAULT_TARGET_TRIPLE, while both of those settings get their
defaults implied from LLVM_HOST_TRIPLE if they're not overridden.
Differential Revision: https://reviews.llvm.org/D142404
Note: ``CMAKE_CROSSCOMPILING`` is always set automatically when ``CMAKE_SYSTEM_NAME`` is set. Don't put ``-DCMAKE_CROSSCOMPILING=TRUE`` in your options.
51
50
51
+
Also note that ``LLVM_HOST_TRIPLE`` specifies the triple of the system
52
+
that the cross built LLVM is going to run on - the flag is named based
53
+
on the autoconf build/host/target nomenclature. (This flag implicitly sets
54
+
other defaults, such as ``LLVM_DEFAULT_TARGET_TRIPLE``.)
55
+
52
56
If you're compiling with GCC, you can use architecture options for your target,
53
57
and the compiler driver will detect everything that it needs:
0 commit comments