<div dir="ltr">I am using the build-script that comes with swift repository. If i remove Immediate dir completely from the build, mac_os build complains[as this will always invoke]. If I redefine the #if then I am getting a dozen errors that are part of histedit.h<div><br></div><div>How can I tell ninja, that not to worry about this change[i will completely remove Immediate dir] and go straight to build the arm build.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 1:39 AM, Joe Groff <span dir="ltr">&lt;<a href="mailto:jgroff@apple.com" target="_blank">jgroff@apple.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class=""><br><div><blockquote type="cite"><div>On Feb 23, 2016, at 12:06 PM, Ramakrishna Mallireddy &lt;<a href="mailto:ramakrishna.malli@gmail.com" target="_blank">ramakrishna.malli@gmail.com</a>&gt; wrote:</div><br><div><div dir="ltr"><p><span>While trying to build for iOS, I am stuck here...I am using the build-script to compile, iOS simulator builds are done and for arm all libs are generate except libSwiftIRGen.a, libSwiftSILOptimizer &amp; libSwiftImmediate.a</span></p><p><span><b>swift/swift/lib/Immediate/REPL.cpp:39:10: </b></span><span><b>fatal error: </b></span><span><b>&#39;histedit.h&#39; file not found</b></span></p><p><span>#include &lt;histedit.h&gt;</span></p><p>this file is not there for iOS, how to get around this.</p></div></div></blockquote></div></span><div>libedit probably isn&#39;t available on iOS, but it&#39;s only used by the compiler-debugging REPL. You can refine the #if here to exclude it from iOS builds:</div><div><br></div><div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(120,73,42)">#if defined(__APPLE__) || defined(__FreeBSD__)</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,132,0)">// FIXME: Support REPL on non-Apple platforms. Ubuntu 14.10&#39;s editline does not</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,132,0)">// include the wide character entry points needed by the REPL yet.</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(209,47,27)"><span style="color:#78492a">#include </span>&lt;histedit.h&gt;</div><div style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,132,0)"><span style="color:#78492a">#endif </span>// __APPLE__</div></div><div><br></div><div>Instead of defined(__APPLE__), defined(__MACOSX__) is probably more appropriate.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>-Joe</div></font></span></div></blockquote></div><br></div>