Also, without my patches I do not see how clang configured with ../configure --enable-targets=arm --target=arm would work on an x86 host machine if you explicitly disable the x86 backend.
It wouldn't - I've done this before by accident :) Do your patches affect the CMake buildsystem too or are they localised to autoconf? Cheers, James ________________________________________ From: [email protected] [[email protected]] On Behalf Of Sebastian Pop [[email protected]] Sent: 21 October 2011 22:10 To: Eric Christopher Cc: [email protected]; [email protected] Subject: Re: [llvm-commits] [cfe-commits] Ping^2: Fix for bug 11060: configure --target does not work On Fri, Oct 21, 2011 at 3:43 PM, Eric Christopher <[email protected]> wrote: > I'm not quite convinced we want to do this at the moment. I understand the > desire to attempt to make clang feel like gcc for cross compilation, but > given that clang can compile to multiple targets simultaneously I don't > think that this is the correct path to take. I understand that clang is more flexible than gcc as it can target any of the backends that are built. My patches do not change that. The patches only change the value of the default target when no other flags are used to specify a target. > Can you give a rationale for wanting this change? First, my patches conserve the semantics of configure if you do not explicitly set the --target flag. If you want the current behavior, then you can omit --target and the configure script will infer the value of target from the host. My patches make --target useful, as the current semantics of --target is that of nop. The target backed should default to the one specified by the user at configure time. Also, without my patches I do not see how clang configured with ../configure --enable-targets=arm --target=arm would work on an x86 host machine if you explicitly disable the x86 backend. Thanks, Sebastian -- Qualcomm Innovation Center, Inc is a member of Code Aurora Forum _______________________________________________ llvm-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits -- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
