[PATCH] D142404: [docs] Prefer setting LLVM_HOST_TRIPLE instead of LLVM_DEFAULT_TARGET_TRIPLE and LLVM_TARGET_ARCH
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 13:52:03 PST 2023
mstorsjo created this revision.
mstorsjo added reviewers: phosek, peter.smith, beanz.
Herald added a project: All.
mstorsjo requested review of this revision.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D142404
Files:
llvm/docs/HowToCrossCompileLLVM.rst
Index: llvm/docs/HowToCrossCompileLLVM.rst
===================================================================
--- llvm/docs/HowToCrossCompileLLVM.rst
+++ llvm/docs/HowToCrossCompileLLVM.rst
@@ -43,8 +43,7 @@
* ``-DCMAKE_SYSTEM_NAME=<target-system>``
* ``-DCMAKE_INSTALL_PREFIX=<install-dir>``
* ``-DLLVM_NATIVE_TOOL_DIR=<path-to-host-bin>``
- * ``-DLLVM_DEFAULT_TARGET_TRIPLE=arm-linux-gnueabihf``
- * ``-DLLVM_TARGET_ARCH=ARM``
+ * ``-DLLVM_HOST_TRIPLE=arm-linux-gnueabihf``
* ``-DLLVM_TARGETS_TO_BUILD=ARM``
Note: ``CMAKE_CROSSCOMPILING`` is always set automatically when ``CMAKE_SYSTEM_NAME`` is set. Don't put ``-DCMAKE_CROSSCOMPILING=TRUE`` in your options.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142404.491504.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230123/6a6bbe6c/attachment-0001.bin>
More information about the llvm-commits
mailing list