<div dir="ltr">Thanks for quick help on this, I am not looking for JIT-compiled, just want to have an AST / LLVM IR from source that will be Translated to JS.</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 14, 2016 at 10:14 PM, Jordan Rose <span dir="ltr">&lt;<a href="mailto:jordan_rose@apple.com" target="_blank">jordan_rose@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"><div>The Clang importer is used both for SwiftShims and for code generation; you can&#39;t just chop it out. You may be able to get away with explicitly passing an empty SDKPath, though; that keeps it from trying to look up things in /.</div><div><br></div><div>Just to be sure, you know you won&#39;t be able to <i>execute</i> the LLVM IR you emit, right? iOS doesn&#39;t support JIT-compiled code (other than the JavaScript JIT).</div><div><br></div><div>Jordan</div><div><br></div><br><div><blockquote type="cite"><div><div class="h5"><div>On Mar 14, 2016, at 4:45 , Ramakrishna Mallireddy via swift-users &lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt; wrote:</div><br></div></div><div><div><div class="h5"><div dir="ltr"><div>Initially I got missing module &quot;Swift&quot; then I provided the missing module and now I am getting error: missing module &quot;SwiftShims&quot;.</div><div><br></div><div>I have searched the entire swift build generated lib folder and have not found this module except the shims folder.<br><div><br></div></div><div>How do I locate this module, In OSX also I got the same error flow  [by deleting the entire lib/swift folder to generate this error/issue] and when I provided the respective swift module &amp; shims directory under lib/swift/shims I was able to past this error message but the same doesn&#39;t helping for iOS.</div><div><br></div><div>Thanks</div><div>Ramakrishna</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 12, 2016 at 6:43 PM, Ramakrishna Mallireddy <span dir="ltr">&lt;<a href="mailto:ramakrishna.malli@gmail.com" target="_blank">ramakrishna.malli@gmail.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 dir="ltr"><div class="gmail_extra">If I remove ClangImporter related code in swift front-end, I am able to start the app. so just want to know what features I miss without ClangImporter. I want to emit LLVM IR assembly for pure swift code. ObjC/C is not something I want to deal with right now.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Inputs on any unexpected things I might face going forward without ClangImporter in this regard will greatly helpful.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks</div><span><font color="#888888"><div class="gmail_extra">Ramakrishna</div></font></span><div><div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 12, 2016 at 12:53 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"><br><div><span><blockquote type="cite"><div>On Mar 11, 2016, at 11:21 AM, 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>Hi,</p><p>I have build clang, llvm , swift for iOS and added these libraries to a sample single-view project and the app crash&#39;s before it reach appdelegate.</p><p>Not able to see what going wrong. could anyone help me to move forward. I don&#39;t know where this <b>libLLVMContainer </b>came from<b>.</b></p></div></div></blockquote></span><div>No idea, sorry. You might have better luck asking the LLVM mailing lists, since the crash here is inside LLVM&#39;s pass manager.</div><span><font color="#888888"><div><br></div><div>-Joe</div></font></span><div><div><blockquote type="cite"><div><div dir="ltr"><p><span>* thread #1: tid = 0x253e8, 0x07a3bddb libsystem_pthread.dylib`_pthread_rwlock_check_init + 11, queue = &#39;com.apple.main-thread&#39;, stop reason = EXC_BAD_ACCESS (code=1, address=0x40000000)</span></p><p><span>  * frame #0: 0x07a3bddb libsystem_pthread.dylib`_pthread_rwlock_check_init + 11</span></p><p><span>    frame #1: 0x07a3baf0 libsystem_pthread.dylib`_pthread_rwlock_lock + 25</span></p><p><span>    frame #2: 0x07a40fcc libsystem_pthread.dylib`pthread_rwlock_wrlock$UNIX2003 + 23</span></p><p><span>    frame #3: 0x0d57ff13 libLLVMContainer.dylib`llvm::sys::RWMutexImpl::writer_acquire() + 19</span></p><p><span>    frame #4: 0x0d4dab12 libLLVMContainer.dylib`llvm::PassRegistry::addRegistrationListener(llvm::PassRegistrationListener*) + 34</span></p><p><span>    frame #5: 0x0d4d667e libLLVMContainer.dylib`llvm::PassNameParser::PassNameParser() + 78</span></p><p><span>    frame #6: 0x0d4cdad3 libLLVMContainer.dylib`_GLOBAL__sub_I_LegacyPassManager.cpp + 1299</span></p><p><span>    frame #7: 0x0187e20f</span></p><p><span>    frame #8: 0x0187e368</span></p><p><span>    frame #9: 0x01879a01</span></p><p><span>    frame #10: 0x01879994</span></p><p><span>    frame #11: 0x01879994</span></p><p><span>    frame #12: 0x01879994</span></p><p><span>    frame #13: 0x01879994</span></p><p><span>    frame #14: 0x01879994</span></p><p><span>    frame #15: 0x01879994</span></p><p><span>    frame #16: 0x01879994</span></p><p><span>    frame #17: 0x01879994</span></p><p><span>    frame #18: 0x01878d54</span></p><p><span>    frame #19: 0x01878de3</span></p><p><span>    frame #20: 0x0186ec50</span></p><p><span>    frame #21: 0x018722c7</span></p><p><span>    frame #22: 0x0186e1f9</span></p><p><span>    frame #23: 0x8fe97118 dyld`dyld::useSimulatorDyld(int, macho_header const*, char const*, int, char const**, char const**, char const**, unsigned long*) + 1053</span></p><p><span>    frame #24: 0x8fe961f2 dyld`dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) + 202</span></p><p><span>    frame #25: 0x8fe92232 dyld`dyldbootstrap::start(macho_header const*, int, char const**, long, macho_header const*, unsigned long*) + 428</span></p><p><span>    frame #26: 0x8fe92047 dyld`_dyld_start + 71</span></p><p><span><br></span></p><p><span>Thanks</span></p><p><span>Ramakrishna</span></p></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 3:16 AM, Ramakrishna Mallireddy <span dir="ltr">&lt;<a href="mailto:ramakrishna.malli@gmail.com" target="_blank">ramakrishna.malli@gmail.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 dir="ltr">Thanks Joe, The build is complete.</div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 2:33 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">Sorry, it looks like the magic combination is <div><br></div><div>#if defined(__APPLE__)</div><div>#include &lt;TargetConditionals.h&gt;</div><div>#endif</div><div><br></div>#if (TARGET_OS_MAC &amp;&amp; !TARGET_OS_IPHONE) || defined(__FreeBSD__)<br>...do REPL stuff...<br><div>#endif<span><font color="#888888"><br><div><br></div><div>-Joe</div></font></span><div><div><div><br><div><blockquote type="cite"><div>On Feb 23, 2016, at 12:42 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">__MACOSX__ is not defined, where can I defined this, so that it only effects mac build.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 24, 2016 at 1:57 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"><span><br>
&gt; On Feb 23, 2016, at 12:22 PM, Ramakrishna Mallireddy &lt;<a href="mailto:ramakrishna.malli@gmail.com" target="_blank">ramakrishna.malli@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; 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<br>
<br>
</span>You will need to update the other #if __APPLE__ conditions in the file to match too.<br>
<span><font color="#888888"><br>
-Joe<br>
<br>
</font></span></blockquote></div><br></div>
</div></blockquote></div><br></div></div></div></div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></blockquote></div></div></div><br></div></blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div></div>
_______________________________________________<br>swift-users mailing list<br><a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-users" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br></div></blockquote></div><br></div></blockquote></div><br></div>