[cfe-dev] How to know autopopulated clang parameters for iOS environment?
Anton Smirnov
dev at antonsmirnov.name
Sun Sep 14 00:05:35 PDT 2014
Hey!
I'm trying to generate clang bit-code for .cpp source file.
For my host platform (mac) i'm running:
clang++ -emit-llvm -S -c hw.cpp -o hw.ll
and i can see it's autopopulated by clang driver to the next cmd:
-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
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.
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.
Any thoughts?
Regards, Anton.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140914/b7394046/attachment.html>
More information about the cfe-dev
mailing list