<div dir="ltr">Hello,<div><br></div><div>I&#39;m still seeing errors when I try invoking the build script with `-x`. I&#39;ve updated all the repositories (everything that lives alongside the &#39;swift&#39; repo, as well as that repo itself) and deleted my build folder completely.</div><div><br></div><div>I see the following errors multiple times before the build terminates:</div><div><br></div><div>&quot;CMake Error at cmake/modules/AddSwift.cmake:578 (add_library):</div><div>  OBJECT library &quot;swiftRuntime-macosx-x86_64&quot; contains:</div><div><br></div><div>    RuntimeFunctions.def</div><div><br></div><div>  but may contain only sources that compile, header files, and other files</div><div>  that would not affect linking of a normal library.</div><div>Call Stack (most recent call first):</div><div>  cmake/modules/AddSwift.cmake:1159 (_add_swift_library_single)</div><div>  stdlib/public/runtime/CMakeLists.txt:68 (add_swift_library)&quot;</div><div><br></div><div>Am I doing something wrong?</div><div><br></div><div>Thanks,</div><div>Austin</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 31, 2016 at 12:30 PM, Dmitri Gribenko via swift-dev <span dir="ltr">&lt;<a href="mailto:swift-dev@swift.org" target="_blank">swift-dev@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Tue, May 31, 2016 at 10:20 AM, Joe Groff &lt;<a href="mailto:jgroff@apple.com">jgroff@apple.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; On May 31, 2016, at 9:37 AM, Dmitri Gribenko via swift-dev &lt;<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi,<br>
&gt;&gt;<br>
&gt;&gt; We have merged a CMake and build-script refactoring that requires a<br>
&gt;&gt; from-scratch build.  Trying to use an existing build directory will<br>
&gt;&gt; result in strange errors in the middle of the build.<br>
&gt;&gt;<br>
&gt;&gt; Excuse me for the inconvenience.<br>
&gt;<br>
&gt; This seems to have broken Xcode project generation, which in the default configuration now fails with:<br>
&gt;<br>
&gt;         --<br>
&gt;         CMake Error at CMakeLists.txt:702 (message):<br>
&gt;           Unknown SDKs:<br>
&gt;           IOS;IOS_SIMULATOR;TVOS;TVOS_SIMULATOR;WATCHOS;WATCHOS_SIMULATOR<br>
&gt;<br>
&gt; Probably easy to work around by manually configuring out those SDKs, since Xcode projects don&#39;t support cross-building to begin with, but this used to just work.<br>
<br>
</span>Should be fixed now, sorry for the disruption.<br>
<br>
<a href="https://github.com/apple/swift/commit/d53b5b25498886c6a81401caa923cabd878ad105" rel="noreferrer" target="_blank">https://github.com/apple/swift/commit/d53b5b25498886c6a81401caa923cabd878ad105</a><br>
<span class="im HOEnZb"><br>
Dmitri<br>
<br>
--<br>
main(i,j){for(i=2;;i++){for(j=2;j&lt;i;j++){if(!(i%j)){j=0;break;}}if<br>
(j){printf(&quot;%d\n&quot;,i);}}} /*Dmitri Gribenko &lt;<a href="mailto:gribozavr@gmail.com">gribozavr@gmail.com</a>&gt;*/<br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
swift-dev mailing list<br>
<a href="mailto:swift-dev@swift.org">swift-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-dev" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-dev</a><br>
</div></div></blockquote></div><br></div>