[llvm] r269062 - [docs] Fix unexpected indentation in HowToCrossCompileLLVM.rst
Renato Golin via llvm-commits
llvm-commits at lists.llvm.org
Tue May 10 07:02:46 PDT 2016
Author: rengolin
Date: Tue May 10 09:02:46 2016
New Revision: 269062
URL: http://llvm.org/viewvc/llvm-project?rev=269062&view=rev
Log:
[docs] Fix unexpected indentation in HowToCrossCompileLLVM.rst
Seems like my sphynx version is different than the one in the bot, as it
accepted everything locally. I think this is the right fix...
Modified:
llvm/trunk/docs/HowToCrossCompileLLVM.rst
Modified: llvm/trunk/docs/HowToCrossCompileLLVM.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/HowToCrossCompileLLVM.rst?rev=269062&r1=269061&r2=269062&view=diff
==============================================================================
--- llvm/trunk/docs/HowToCrossCompileLLVM.rst (original)
+++ llvm/trunk/docs/HowToCrossCompileLLVM.rst Tue May 10 09:02:46 2016
@@ -39,6 +39,7 @@ For more information on how to configure
see :doc:`CMake`.
The CMake options you need to add are:
+
* ``-DCMAKE_CROSSCOMPILING=True``
* ``-DCMAKE_INSTALL_PREFIX=<install-dir>``
* ``-DLLVM_TABLEGEN=<path-to-host-bin>/llvm-tblgen``
@@ -49,12 +50,14 @@ The CMake options you need to add are:
If you're compiling with GCC, you can use architecture options for your target,
and the compiler driver will detect everything that it needs:
+
* ``-DCMAKE_CXX_FLAGS='-march=armv7-a -mcpu=cortex-a9 -mfloat-abi=hard'``
However, if you're using Clang, the driver might not be up-to-date with your
specific Linux distribution, version or GCC layout, so you'll need to fudge.
In addition to the ones above, you'll also need:
+
* ``'-target arm-linux-gnueabihf'`` or whatever is the triple of your cross GCC.
* ``'--sysroot=/usr/arm-linux-gnueabihf'``, ``'--sysroot=/opt/gcc/arm-linux-gnueabihf'``
or whatever is the location of your GCC's sysroot (where /lib, /bin etc are).
More information about the llvm-commits
mailing list