Anonymous user
LLVM Cross-Compiler: Difference between revisions
Rewrote cited forum posts into something more fitting for a wiki page
[unchecked revision] | [unchecked revision] |
No edit summary |
(Rewrote cited forum posts into something more fitting for a wiki page) |
||
Line 19:
</source>
After building you will have a compiler able to output multiple output formats regardless of your current platform
For example, for ARM, you can use
<source lang="bash">▼
-march=armv7-a -mfloat-abi=soft -ccc-host-triple arm-elf▼
</source>▼
Since 3.1, it can be shortened to
<source lang="bash">▼
-target armv7--eabi -mcpu=cortex-a9▼
</source>▼
TODO: beware that clang is both a cross-compiler and a host-compiler and you would have to specify some options to disable host functionality.
Line 28 ⟶ 38:
TODO: integrate libc++ build instructions
▲<source lang="bash">
▲-march=armv7-a -mfloat-abi=soft -ccc-host-triple arm-elf
▲</source>
▲<source lang="bash">
▲-target armv7--eabi -mcpu=cortex-a9
▲</source>
|