[cfe-dev] Single instance 'clang', multi-target support for headers and libraries
Joerg Sonnenberger via cfe-dev
cfe-dev at lists.llvm.org
Thu Jun 7 05:24:09 PDT 2018
On Thu, Jun 07, 2018 at 11:44:01AM +0100, Martin J. O'Riordan via cfe-dev wrote:
> If I configure and build GCC for a particular target triple with a specific
> C library (e.g.: 'glibc', 'newlib', 'uclibc', 'musl'), then the
> corresponding suites of headers and libraries are particular to that
> configuration.
There is no need to do anything like that with clang. It supports
sysroot out of the box, i.e. just point it to a system image with the
headers and libraries, and the right thing will happen. Depending on
your path, you might also need -B<where-the-target-tools-are>.
Joerg
More information about the cfe-dev
mailing list