[llvm] ec15b73 - Add 'LLVM_DEFAULT_TARGET_TRIPLE' to the documented list of CMake variables
Dylan McKay via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 1 00:39:27 PST 2021
Author: Dylan McKay
Date: 2021-12-01T21:38:59+13:00
New Revision: ec15b7307f54ab5203f3fbf134e0b57deeb2a93f
URL: https://github.com/llvm/llvm-project/commit/ec15b7307f54ab5203f3fbf134e0b57deeb2a93f
DIFF: https://github.com/llvm/llvm-project/commit/ec15b7307f54ab5203f3fbf134e0b57deeb2a93f.diff
LOG: Add 'LLVM_DEFAULT_TARGET_TRIPLE' to the documented list of CMake variables
I always forget this variable, and the distinction between
'LLVM_TARGET_ARCH', and this variable is only documented on the 'cross
compiling' page, which I never spot and always end up searching through
the codebase for.
This patch adds the variable to the Sphinx CMake documentation so that
it is easily findable in the official LLVM docs.
Reviewed By: probinson
Differential Revision: https://reviews.llvm.org/D96014
Added:
Modified:
llvm/docs/CMake.rst
Removed:
################################################################################
diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst
index 05dcae649ae47..3c7cbc85ed2e7 100644
--- a/llvm/docs/CMake.rst
+++ b/llvm/docs/CMake.rst
@@ -366,6 +366,12 @@ enabled sub-projects. Nearly all of these variable names begin with
$CMAKE_INSTALL_PREFIX/Toolchains containing an xctoolchain directory which can
be used to override the default system tools.
+**LLVM_DEFAULT_TARGET_TRIPLE**:STRING
+ LLVM target to use for code generation when no target is explicitly specified.
+ It defaults to "host", meaning that it shall pick the architecture
+ of the machine where LLVM is being built. If you are building a cross-compiler,
+ set it to the target triple of your desired architecture.
+
**LLVM_DOXYGEN_QCH_FILENAME**:STRING
The filename of the Qt Compressed Help file that will be generated when
``-DLLVM_ENABLE_DOXYGEN=ON`` and
More information about the llvm-commits
mailing list