<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 21, 2011, at 3:02 PM, Eric Christopher wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 21, 2011, at 2:10 PM, Sebastian Pop wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">First, my patches conserve the semantics of configure if you do not<br>explicitly set the --target flag.  If you want the current behavior, then<br>you can omit --target and the configure script will infer the value of<br>target from the host.<br><br>My patches make --target useful, as the current semantics of --target<br>is that of nop.  The target backed should default to the one specified<br>by the user at configure time.<br><br>Also, without my patches I do not see how clang configured with<br>../configure --enable-targets=arm --target=arm<br>would work on an x86 host machine if you explicitly disable the x86<br>backend.</span></blockquote></div><div><br></div><div>Some thinking out loud to open up the discussion:</div><br><div>I understand this, but I'm just not sure _why_ we want to do such a thing.</div><div>Smaller shipping binaries I suppose? Is it worth the headache of having</div><div>clang understand the cross target but not the native target? I'm trying</div><div>to avoid the "ship a host-x-target for every target you really want to support"</div><div>headache that comes out of using --target.</div><div><br></div><div>This would solve the need for setting a default target in the "canadian cross"</div><div>style build (or constructing a small shell script that does the same), but</div><div>mostly this feels like a "where do we draw the line" question and my only</div><div>answer is "blue".</div><div><br></div><div>Also, James's points should be answered as well. :)</div></div></blockquote><br></div><div>*shrug* After some discussion I can't come up with a reason why not that</div><div>isn't something we already have a problem with :)</div><div><br></div><div>So if you send me another diff I'll check it in.</div><div><br></div><div>-eric</div></body></html>