<div dir="ltr">Possibly someone knows required arguments set for doing the same ("-emit-llvm -S -c .. -o ..") on ios?</div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-14 13:05 GMT+06:00 Anton Smirnov <span dir="ltr"><<a href="mailto:dev@antonsmirnov.name" target="_blank">dev@antonsmirnov.name</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey!<div><br></div><div><div>I'm trying to generate clang bit-code for .cpp source file.</div><div><br></div><div>For my host platform (mac) i'm running:</div><div><br></div><div>    clang++ -emit-llvm -S -c hw.cpp -o hw.ll</div><div><br></div><div>and i can see it's autopopulated by clang driver to the next cmd:</div><div><br></div><div>    -cc1 -triple x86_64-apple-macosx10.9.0 -emit-llvm -disable-free -disable-llvm-verifier -main-file-name hw.cpp -mrelocation-model pic -pic-level 2 -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -coverage-file /tmp/hw.ll -resource-dir /Users/asmirnov/Documents/dev/src/llvm_34_build_local2/bin/../lib/clang/3.4 -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include -stdlib=libc++ -fdeprecated-macro -fdebug-compilation-dir /Users/asmirnov/Documents/dev/src/llvm_34_build_local2 -ferror-limit 19 -fmessage-length 100 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -o /tmp/hw.ll -x c++ ./hw.cpp</div><div><br></div><div>How to know autopopulated clang params if i cross-compile clang for ARM (using XCode toolchain)? I believe it's another "-triple" and some other arguments values.</div><div><br></div><div>The problem is that i don't want to jailbreak my ios device as i need it only once and executable launching is not allowed on ios.</div></div><div><br></div><div>Any thoughts?</div><div><br></div><div>Regards, Anton.</div></div>
</blockquote></div><br></div>