diff options
author | Renato Golin <renato.golin@linaro.org> | 2016-05-10 14:02:46 +0000 |
---|---|---|
committer | Renato Golin <renato.golin@linaro.org> | 2016-05-10 14:02:46 +0000 |
commit | 50b2db8fa0ced32310fcc8676a4ff891920523fe (patch) | |
tree | c7732943ef2fed625e4f791ff73d6a623263abcc /docs/HowToCrossCompileLLVM.rst | |
parent | 27af205ce1ad085cbc9c558f48d16521592d27fa (diff) |
[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...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269062 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/HowToCrossCompileLLVM.rst')
-rw-r--r-- | docs/HowToCrossCompileLLVM.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/HowToCrossCompileLLVM.rst b/docs/HowToCrossCompileLLVM.rst index e8e5fefa39b9..e71c0b07a7a0 100644 --- a/docs/HowToCrossCompileLLVM.rst +++ b/docs/HowToCrossCompileLLVM.rst @@ -39,6 +39,7 @@ For more information on how to configure CMake for LLVM/Clang, 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). |