[cfe-dev] default sysroot per target?

Greg Fitzgerald garious at gmail.com
Tue Jun 11 18:18:21 PDT 2013


Is there a way to configure the clang build (either autotools+make or
CMake) such that the resulting clang will have a different default
sysroot for each target triple?

For example, in each pair of lines below, if the user enters first
line, it has the meaning of the second:

clang
clang --sysroot=/

clang -target arm-linux-androideabi
clang -target arm-linux-androideabi --sysroot=$NDK/platforms/android-14/arch-arm

clang -target arm-none-linux-gnueabi
clang -target arm-none-linux-gnueabi --sysroot=$ARMLINUX/arm-none-linux-gnueabi

Thanks,
Greg



More information about the cfe-dev mailing list