<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 23, 2016, at 12:06 PM, Ramakrishna Mallireddy <<a href="mailto:ramakrishna.malli@gmail.com" class="">ramakrishna.malli@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><p class=""><span class="">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 & libSwiftImmediate.a</span></p><p class=""><span class=""><b class="">swift/swift/lib/Immediate/REPL.cpp:39:10: </b></span><span class=""><b class="">fatal error: </b></span><span class=""><b class="">'histedit.h' file not found</b></span></p><p class=""><span class="">#include <histedit.h></span></p><p class="">this file is not there for iOS, how to get around this.</p></div></div></blockquote></div><div class="">libedit probably isn't available on iOS, but it's only used by the compiler-debugging REPL. You can refine the #if here to exclude it from iOS builds:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(120, 73, 42);" class="">#if defined(__APPLE__) || defined(__FreeBSD__)</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);" class="">// FIXME: Support REPL on non-Apple platforms. Ubuntu 14.10's editline does not</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);" class="">// 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);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #78492a" class="">#include </span><histedit.h></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 132, 0);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #78492a" class="">#endif </span>// __APPLE__</div></div><div class=""><br class=""></div><div class="">Instead of defined(__APPLE__), defined(__MACOSX__) is probably more appropriate.</div><div class=""><br class=""></div><div class="">-Joe</div></body></html>