[cfe-commits] r140604 - /cfe/trunk/lib/Driver/ToolChains.cpp

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Mon Oct 3 08:36:38 PDT 2011


> --sysroot is not a viable alternative, because GCC cross-build
> toolchains do not put everything in the sysroot. Things like libcrt.o
> live in the GCC root directory.  This is hard-coded into the GCC
> version that they ship, so there needs to be some way of providing
> this path to clang.

Hardcoding it at compile time? In the future this will hopefully be a 
configuration file, but for now you can probably try adding 
configure/cmake options similar to the ones we have for C and C++ header 
search.

Cheers,
Rafael



More information about the cfe-commits mailing list