<div dir="ltr">Hi,<div><br></div><div>I am running the second preview of macOS Sierra and am attempting to build swift. LLVM and cmark built successfully, but swift failed during the configuration stage with the error message</div><div><br></div><div>Unsupported imported target type MODULE_LIBRARY</div><div><br></div><div>I hacked the cmake file by bypassing the conditional check, but I got some link time error after compilation:</div><div><br></div><div><div>The following build commands failed:</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Ld ../build/Xcode-DebugAssert/swift-macosx-x86_64/Debug/lib/libswiftDemangle.dylib normal x86_64</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Ld ../build/Xcode-DebugAssert/swift-macosx-x86_64/Debug/bin/swift-demangle normal x86_64</div></div><div><br></div><div>I am using the second preview of macOS Sierra and am compiling with the HEAD of the repository. Any hint on how to proceed? I have successfully compiled swift on another Mac with El Capitan.</div><div><br></div><div>Thank you,</div><div>– Minsheng Liu</div></div>