[llvm-dev] Clang Cross compilation GCC Source Requirement

Joerg Sonnenberger via llvm-dev llvm-dev at lists.llvm.org
Tue Apr 3 07:01:38 PDT 2018


On Tue, Apr 03, 2018 at 09:20:33AM -0400, Michael Dalpee via llvm-dev wrote:
> 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?

You don't need to provide a gcc toolchain. You need to provide a linker,
potentially an assembler and a target environment though. The target
environment can be a snapshot of the real system, i.e. just a copy of
/lib and /usr.

Joerg


More information about the llvm-dev mailing list