[PATCH] D39600: [docs][ARM] Add HowTo for cross compiling and testing compiler-rt builtins on Arm

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 6 12:10:47 PST 2017


efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.

LGTM.  There's some stuff that could probably be improved (a lot of the information isn't really ARM-specific, and it sucks that the documentation is asking people to edit CMakeLists.txt), but I think we should get the initial version in, and iterate in-tree.



================
Comment at: docs/HowToCrossCompileBuiltinsOnArm.rst:53
+* ``-DCOMPILER_RT_BUILD_LIBFUZZER=OFF``
+* ``-DCOMPILER_RT_BUILD_PROFILE=OFF``
+* ``-DCMAKE_C_COMPILER=/path/to/clang``
----------------
peter.smith wrote:
> efriedma wrote:
> > Not sure why you're turning all this stuff off?  These libraries are generally useful for Linux targets.
> I didn't want to stray to far from the builtins for this howto to keep it simple and within my experience. 
> 
> From what I can tell I the support for cross-compilation and testing isn't as mature for the builtins, for example I can cross-build the profile library but the tests don't build for me and I haven't dug into why yet. I've not been able to get libfuzzer to cross build at all yet. I think that this information could be added later.  
Okay, that's fine.


https://reviews.llvm.org/D39600





More information about the llvm-commits mailing list