<div><div dir="auto">Sure, that sounds good.  Working on patch now.  Thanks for reporting this.</div><br><div class="gmail_quote"><div>On Wed, Dec 6, 2017 at 6:00 AM Pavel Labath <<a href="mailto:labath@google.com">labath@google.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 6 December 2017 at 13:40, Don Hinton <<a href="mailto:hintonda@gmail.com" target="_blank">hintonda@gmail.com</a>> wrote:<br>
> Would handling them like the linker flags and only passing them when not<br>
> cross compiling fix this?<br>
<br>
Yes, I believe it will (Is this code ever invoked when *not* cross-compiling?).<br>
<br>
However, I still think the CROSS_TOOLCHAIN_FLAGS should come last, as<br>
this gives the user the opportunity to override any of our arguments<br>
for any reason he sees fit. E.g., I can see how someone might want to<br>
use CMAKE_BUILD_TYPE=Release for the host tblgen targets, but still<br>
build the main thing in debug mode.<br>
<br>
Is there any reason that can't be done?<br>
</blockquote></div></div>