On Mon, Oct 17, 2011 at 1:43 PM, Eric Christopher <[email protected]> wrote: > Not quite sure what you're going for here. Is the idea to try to make > --host=xxx and --target=yyy work in clang?
Yes. The attached patches make --target work. For the moment specifying --target at configure time has no effect: the value set by the configure script into $target is not used. Currently we are using the value set by the configure scripts in $host to build the target toolchain, and this is IMHO the wrong thing to do. With these two patches, we take the value from $target and use it to build the default target toolchain: so when I say configure --target=arm-none-linux-gnueabi I get a clang that produces ARM assembly by default (without these two patches, I currently get x86_64 assembly as the host is x86_64). Thanks, Sebastian -- Qualcomm Innovation Center, Inc is a member of Code Aurora Forum > > -eric > > On Oct 17, 2011, at 10:22 AM, Sebastian Pop wrote: > >> Ping patches. >> >> On Thu, Oct 13, 2011 at 3:55 PM, Sebastian Pop <[email protected]> wrote: >>> On Thu, Oct 13, 2011 at 3:14 PM, Joerg Sonnenberger >>> <[email protected]> wrote: >>>> LLVM_HOSTTRIPLE specifies the default *target*. It doesn't care about >>>> the *host*. >>> >>> Ok, so let's get this one fixed: >>> if you tell me the places where LLVM_HOSTTRIPLE is used for the target >>> and that my patch has not changed into using the value set in $target, >>> please let me know and I will amend my patches. >>> >> >> Could somebody review and commit the attached patches? >> >> Thanks, >> Sebastian >> -- >> Qualcomm Innovation Center, Inc is a member of Code Aurora Forum >> <0001-add-getDefaultTargetTriple.patch.txt><0001-use-getDefaultTargetTriple-instead-of-getHostTriple.patch.txt>_______________________________________________ >> llvm-commits mailing list >> [email protected] >> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits > > _______________________________________________ > cfe-commits mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits > _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
