<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Sorry for the delay in responding to this, I’m WAY behind on my email.<div class=""><br class=""></div><div class="">The patch looks good to me. Thanks for doing this, it is a nice improvement over the existing code!</div><div class="">-Chris</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 19, 2015, at 11:35 AM, Chuck Atkins via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Scratch the first one, it's got some typos. This is the one I meant to upload.  I've been using it for cross-compiling on Cray.<br class=""></div><div class="gmail_extra"><br clear="all" class=""><div class=""><div class="gmail_signature"><div dir="ltr" class="">- Chuck<br class=""></div></div></div>
<br class=""><div class="gmail_quote">On Thu, Nov 19, 2015 at 1:17 PM, Chuck Atkins <span dir="ltr" class=""><<a href="mailto:chuck.atkins@kitware.com" target="_blank" class="">chuck.atkins@kitware.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The current behavior is to not specify any toolchain and invoke CMake<br class="">
without additional arguments for configuring the NATIVE portion of the<br class="">
build.  However, CMake will actually set the CC, CXX, and FC<br class="">
environment variables to full paths of the compilers in the<br class="">
CMAKE_{C,CXX,Fortran}_COMPILER CMake variables inside the CMake process.<br class="">
This results in those variables being propagated to any execute_process<br class="">
calls so without explicitly providing a separate toolchain file, the<br class="">
configure step for the NATIVE host will pick up the compilers used by<br class="">
the cross-compile toolchain intended for the target CPU.<br class="">
---<br class="">
 cmake/modules/CrossCompile.cmake | 14 ++++++++++----<br class="">
 1 file changed, 10 insertions(+), 4 deletions(-)<br class="">
</blockquote></div><br class=""></div>
<span id="cid:80C3C552-DCDD-4163-BFAE-A854ED5BEC1A"><0001-CMAKE-Allow-a-toolchain-file-for-the-host-when-cross.patch></span>_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></body></html>