<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></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 Sep 1, 2015, at 11:56 PM, 在哪 via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" style="font-family: 微软雅黑; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">Hi, all<br class="">     When I use "xcodebuild" to build my iOS project, the process stopped in compling "PrefixHeader.pch". I use the following command:<br class=""><br class="">    =>    xcodebuild -project xxx -scheme yyy build OTHER_CFLAGS="-mllvm -xt-obf"<br class=""><br class="">     the error messages are:<br class="">  <span class="Apple-converted-space"> </span><br class="">   =>   clang (LLVM option parsing): Unknown command line argument '-xt-obf-header'.  Try: 'clang (LLVM option parsing) -help'<br class="">           clang (LLVM option parsing): Did you mean '-xt-obf'?<br class=""><br class="">     That means: The "clang" compiler change my "xt-obf" to "xt-obf-header" in compling "PrefixHeader.pch”. <span class="Apple-converted-space"> </span><br class=""></div></div></blockquote><div><br class=""></div><div><br class=""></div><div>It seems to me from the log you posted that it is not clang that changed anything but xcodebuild that is invoking clang with  -mllvm -xt-obf-header (I don’t know why).</div><div><br class=""></div><div>How is the clang invocation affected by other -mllvm parameters?</div><div><br class=""></div><div>— </div><div>Mehdi</div><div><br class=""></div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" style="font-family: 微软雅黑; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">     I want to kown the reseaon and the way to fix it. Can anyone help me ? Thanks.   <span class="Apple-converted-space"> </span><br class=""><br class="">Maxs<br class="">====================================================================================================<br class="">     The compiling command's details are as follows:<br class=""><br class="">ProcessPCH Build/Intermediates/ArchiveIntermediates/Meizi/PrecompiledHeaders/PrefixHeader-cezacppvwgfcdwanbcmjxifonvwx/PrefixHeader.pch.pch Meizi/PrefixHeader.pch normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler<br class="">    cd /Users/netease/Desktop/SRC_github/Meizi<br class="">    export LANG=en_US.US-ASCII<br class="">    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/netease/Downloads/Users/ryuichis/Projects/L/oclint-08/build/oclint-0.8.1/bin:/Users/netease/Desktop/llvm-build/bin:/opt/iOSOpenDev/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"<br class="">    /Users/netease/Desktop/llvm-build-debug/bin/clang -x objective-c-header -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/netease/Desktop/SRC_github/Meizi/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/netease/Desktop/SRC_github/Meizi/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-receiver-is-weak -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DCOCOAPODS=1 -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.4.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -fvisibility=hidden -Wno-sign-conversion -miphoneos-version-min=8.0 -iquote /Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/Meizi-generated-files.hmap -I/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/Meizi-own-target-headers.hmap -I/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/Meizi-all-target-headers.hmap -iquote /Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/Meizi-project-headers.hmap -I/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/BuildProductsPath/Release-iphoneos/include -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/AFDownloadRequestOperation -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/AFNetworking -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/DACircularProgress -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/HMSegmentedControl -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/MBProgressHUD -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/MJExtension -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/MJRefresh -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/MWPhotoBrowser -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/NHBalancedFlowLayout -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/SDWebImage -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/SVProgressHUD -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/UIActivityIndicator-for-SDWebImage -I/Users/netease/Desktop/SRC_github/Meizi/Pods/Headers/Public/YTKNetwork -I/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/DerivedSources/armv7 -I/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/IntermediateBuildFilesPath/Meizi.build/Release-iphoneos/Meizi.build/DerivedSources -F/Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/BuildProductsPath/Release-iphoneos -mllvm -xt-obf-header -MD -MT dependencies -MF /Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/PrecompiledHeaders/PrefixHeader-cezacppvwgfcdwanbcmjxifonvwx/PrefixHeader.pch.d -c /Users/netease/Desktop/SRC_github/Meizi/Meizi/PrefixHeader.pch -o /Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/PrecompiledHeaders/PrefixHeader-cezacppvwgfcdwanbcmjxifonvwx/PrefixHeader.pch.pch --serialize-diagnostics /Users/netease/Desktop/SRC_github/Meizi/Build/Intermediates/ArchiveIntermediates/Meizi/PrecompiledHeaders/PrefixHeader-cezacppvwgfcdwanbcmjxifonvwx/PrefixHeader.pch.dia<br class="">clang (LLVM option parsing): Unknown command line argument '-xt-obf-header'.  Try: 'clang (LLVM option parsing) -help'<br class="">clang (LLVM option parsing): Did you mean '-xt-obf'?<br class="">Command /Users/netease/Desktop/llvm-build-debug/bin/clang failed with exit code 1<br class=""></div><span style="font-family: 微软雅黑; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: 微软雅黑; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: 微软雅黑; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">LLVM Developers mailing list</span><br style="font-family: 微软雅黑; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="mailto:llvm-dev@lists.llvm.org" style="font-family: 微软雅黑; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">llvm-dev@lists.llvm.org</a><br style="font-family: 微软雅黑; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" style="font-family: 微软雅黑; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a></div></blockquote></div><br class=""></body></html>