[llvm-dev] Clang Cross compilation GCC Source Requirement

Michael Dalpee via llvm-dev llvm-dev at lists.llvm.org
Tue Apr 3 06:20:33 PDT 2018


Hi,

I am new to CLANG/LLVM and wish to use it to cross compile an application
for an arm target.   I was able to get this to work for a small test
application, but only after I pointed clang at the gcc toolchain source I
was formerly using by providing --sysroot and -I arguments - otherwise, I
was getting undefined header file errors.

It seems a bit odd that given CLANG is intended to be a gcc replacement, I
still need to provide a gcc toolchain for it to work.  Am I doing this
right?

Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180403/29e2fa8e/attachment.html>


More information about the llvm-dev mailing list