<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="">This is a complicated problem, and it doesn’t have an easy solution.<div class=""><br class=""></div><div class="">The problem is CMake generally assumes that you’re building for one target at a time, which is a safe assumption for most projects, but doesn’t work great when you’re building a cross-compiler. The correct solution to this will be to extend the LLVM_BUILD_EXTERNAL_COMPILER_RT option to take a list of target specifiers (or triples) and configure and build compiler-rt <i class="">n</i> times.</div><div class=""><br class=""></div><div class="">I have plans to work on that support sometime hopefully in the next few months. Overhauling the LLVM_BUILD_EXTERNAL_COMPILER_RT option is basically the next logical step after I finish my work on the builtin libraries (See: <a href="http://reviews.llvm.org/D16653" class="">http://reviews.llvm.org/D16653</a>).</div><div class=""><br class=""></div><div class="">-Chris<br class=""><div class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 20, 2016, at 12:09 AM, Handong Ye 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=""><div class=""><div class="">Hi All, I looked into the configure and cmake files, it seems compiler-rt only target x86 by default. It is determined by COMPILER_RT_DEFAULT_TARGET_ARCH, which is coming from host TARGET triple.<br class=""><br class=""></div>Can anyone tell me why? Why not do the same as Clang is doing to build for all targets by default.<br class=""><br class=""></div>Also, if I want to make it to build for all targets by default, what's the best way to change it.<br class=""><div class=""><div class=""><div class=""><br class="">-- <br class=""><div class="gmail_signature">Thanks.<br class="">Handong</div>
</div></div></div></div>
_______________________________________________<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></div></div></body></html>