<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1251"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">It appears as though the&nbsp;--install-swift flag is intended to make build-script-impl install swift. However, it fails with this:&nbsp;<div class=""><br class=""></div><div class=""><div class="">/usr/local/bin/cmake --build /Users/andyhyatt/src/swift-fixed/build/Ninja-Debug/swift-macosx-x86_64 -- install</div><div class="">ninja: error: unknown target ‘install'</div><div class=""><br class=""></div><div class="">This is strange, because similar commands like --install-lldb function without error.&nbsp;</div><div class=""><br class=""></div><div class="">Another quirk is that swift-macosx-x86_64 is the folder it is running the install scripts of, but I am cross compiling for armv7s.&nbsp;</div><div class=""><br class=""></div><div class="">Is there a better way to export the compiled tools for install when cross compiling than what I am doing?</div></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=""><div style=""><blockquote type="cite" class=""><div class="">On Mar 28, 2016, at 5:56 PM, Andrew Hyatt via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="content-type" content="text/html; charset=utf-8" class=""><div dir="auto" class=""><div class="">It is worth noting that I am cross compiling on Mac OS X 10.11.3 x86_64, and compiling for an armv7s Darwin 15.0.0 platform.&nbsp;<br class=""><br class="">Andrew Hyatt<div class=""><a href="mailto:ahyattdev@icloud.com" class="">ahyattdev@icloud.com</a></div></div><div class=""><br class="">On Mar 26, 2016, at 10:44 AM, Andrew Hyatt via swift-dev &lt;<a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a>&gt; wrote:<br class=""><br class=""></div><blockquote type="cite" class=""><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div class="">swift-dev,</div><div class=""><br class=""></div><div class="">The build system is ignoring swift-install-components when cross compiling.&nbsp;</div><div class=""><br class=""></div><div class="">The llvm-install-components are copied over cleanly, but the swift-install-components are ignored.&nbsp;</div><div class=""><br class=""></div><div class="">An additional issue is that it still puts the products in the toolchain directory and ignores the specified prefix, despite a blank toolchain prefix being specified.&nbsp;</div><div class=""><br class=""></div><div class="">The expected layout of install-destdir: /usr/local/ *everything from llvm-install-components and swift-install-components*</div><div class=""><br class=""></div><div class="">Actual layout:&nbsp;/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/ &nbsp;*everything from llvm-install-components*</div><div class=""><br class=""></div><div class="">My build command:</div><div class=""><br class=""></div>utils/build-script -i --no-assertions -- \<div class="">--cross-compile-tools-deployment-targets "iphoneos-armv7s” \<div class="">--user-config-args="-DLLVM_ENABLE_BACKTRACES=Off -DSWIFT_BUILD_SOURCEKIT=FALSE”&nbsp;\<div class="">--install-destdir=/Users/andyhyatt/src/inst --install-prefix=/usr/local/ \</div><div class="">--swift-install-components "compiler;stdlib;clang-builtin-headers” \</div><div class="">--llvm-install-components "clang;libclang;libclang-headers” \</div><div class="">--toolchain-prefix=“/"</div><div class=""><br class=""></div><div class="">Also, is there any way to get a list of valid components for llvm-install-components?&nbsp;</div><div class=""><br class=""></div><div class="">There is a CMake variable called _SWIFT_KNOWN_INSTALL_COMPONENTS that is defined here:&nbsp;<a href="https://github.com/apple/swift/blob/de8322951cf4863acb69f489a6feaee20532215b/CMakeLists.txt#L85" class="">https://github.com/apple/swift/blob/de8322951cf4863acb69f489a6feaee20532215b/CMakeLists.txt#L85</a></div><div class=""><br class=""></div><div class="">I was unable to find an equivalent definition for LLVM.&nbsp;<br class=""><div class="">
<div style="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="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=""></div></div></div></div></blockquote><blockquote type="cite" class=""><div class=""><span class="">_______________________________________________</span><br class=""><span class="">swift-dev mailing list</span><br class=""><span class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a></span><br class=""><span class=""><a href="https://lists.swift.org/mailman/listinfo/swift-dev" class="">https://lists.swift.org/mailman/listinfo/swift-dev</a></span><br class=""></div></blockquote></div>_______________________________________________<br class="">swift-dev mailing list<br class=""><a href="mailto:swift-dev@swift.org" class="">swift-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-dev<br class=""></div></blockquote></div><br class=""></body></html>