[cfe-dev] default sysroot per target?

Eric Christopher echristo at gmail.com
Wed Jun 12 10:01:27 PDT 2013


Not right now, but it seems like something reasonable to add a syntax for.

-eric

On Tue, Jun 11, 2013 at 6:18 PM, Greg Fitzgerald <garious at gmail.com> wrote:
> 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
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list