<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=""><div style="margin: 0px 0px 0.35714285714285715em; padding: 0px; line-height: 1.4285714285714286em;" class=""><font color="#404040" face="arial, sans-serif" class=""><span style="font-size: 14px;" class="">I am having an issue cross compiling swift-llvm for iOS from OS X.&nbsp;</span></font></div><div style="margin: 0px 0px 0.35714285714285715em; padding: 0px; line-height: 1.4285714285714286em;" class=""><font color="#404040" face="arial, sans-serif" class=""><span style="font-size: 14px;" class=""><br class=""></span></font></div><div style="margin: 0px 0px 0.35714285714285715em; padding: 0px; font-size: 14px; line-height: 1.4285714285714286em; color: rgb(64, 64, 64); font-family: arial, sans-serif;" class="">This is my command:</div><div style="margin: 0px 0px 0.35714285714285715em; padding: 0px; font-size: 14px; line-height: 1.4285714285714286em; color: rgb(64, 64, 64); font-family: arial, sans-serif;" class=""><br class=""></div><div style="margin: 0.35714285714285715em 0px; padding: 0px; font-size: 14px; line-height: 1.4285714285714286em; color: rgb(64, 64, 64); font-family: arial, sans-serif;" class="">utils/build-script -R -i --host-target iphoneos-armv7s --no-assertions -c -- --native-llvm-tools-path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ --user-config-args="-DLLVM_ENABLE_BACKTRACES=Off -DCMAKE_CROSSCOMPILING=True”</div><div style="margin: 0.35714285714285715em 0px; padding: 0px; font-size: 14px; line-height: 1.4285714285714286em; color: rgb(64, 64, 64); font-family: arial, sans-serif;" class=""><br class=""></div><div style="margin: 0.35714285714285715em 0px; padding: 0px; font-size: 14px; line-height: 1.4285714285714286em; color: rgb(64, 64, 64); font-family: arial, sans-serif;" class="">The error is:</div><div style="margin: 0.35714285714285715em 0px; padding: 0px; font-size: 14px; line-height: 1.4285714285714286em; color: rgb(64, 64, 64); font-family: arial, sans-serif;" class=""><br class=""></div><pre style="margin-top: 0.35714285714285715em; margin-bottom: 0.35714285714285715em; padding: 4px 9px; border: 1px solid rgb(238, 238, 210); background-color: rgb(255, 255, 255); border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; overflow: auto; color: rgb(64, 64, 64); font-size: 14px;" class=""><code style="font-family: monospace, monospace; margin: 0px 2px; border: 0px; background-color: transparent; border-top-left-radius: 2px; border-top-right-radius: 2px; border-bottom-right-radius: 2px; border-bottom-left-radius: 2px; word-break: normal; display: block; font-size: 1em; line-height: 1.4285714285714286em; padding: 0px !important;" class="">build/Ninja-Release/llvm-iphoneos-armv7s/bin/llvm-tblgen: Bad CPU type in executable
</code></pre><div style="margin: 0.35714285714285715em 0px 0px; padding: 0px; font-size: 14px; line-height: 1.4285714285714286em; color: rgb(64, 64, 64); font-family: arial, sans-serif;" class=""><br class=""></div><div style="margin: 0.35714285714285715em 0px 0px; padding: 0px; font-size: 14px; line-height: 1.4285714285714286em; color: rgb(64, 64, 64); font-family: arial, sans-serif;" class="">It compiles llvm-tblgen for the correct architecture (armv7s), then it tries to execute it on the host machine and use it to build other files. How can I avoid this?</div><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Andrew Hyatt</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:andythehyatt@gmail.com" class="">andythehyatt@gmail.com</a></div>

</div>
<br class=""></body></html>