[cfe-commits] [PATCH] [Driver] Make default GCC install prefix and sysroot relocatable

Rafael Ávila de Espíndola respindola at mozilla.com
Tue Dec 11 06:22:15 PST 2012


> And there is not only according the LLVM_PREFIX and the path of clang
> executable to imply the sysroot path since the sysroot for
> cross-compilation is no standard path, so I just make the behavior
> like the gcc toolchain,
> and it's will make the clang/llvm able to distribute like
> codesourcery's toolchain.

Doesn't the clang driver already search for gcc libraries installed next to it? If you need it to be in a subfolder or something, I would prefer to add support for GCC_INSTALL_PREFIX being a relative path, so that you can build with something like

configure --with-gcc-toolchain=../relative/gcc/install/dir/

instead of doing prefix match at runtime.

Cheers,
Rafael





More information about the cfe-commits mailing list