iphone - Use LLVM compiler by default for all Xcode projects? -
i enjoy switching gcc llvm compiler, have switch manually every time start new project, or there way make llvm default compiler?
i'm talking xcode 3.
thanks.
to accomplish have modify project template within developer directory.
navigate templates (probably like: /developer/platforms/iphoneos.platform/developer/library/xcode/project templates/
once you're there, can select project template wish modify, , locate it's .xcodeproj
file. can "show package contents" , inside project.pbxproj
. can modify file , edit in build setting change default compiler.
you'll have find each section relates build settings each configuration (debug, release etc.), search /* begin xcbuildconfiguration section */
.
then you'll have add gcc_version
key , com.apple.compilers.llvm.clang.1_0
value (1_0 in instance llvm 1.6 according xcode. assume key-name gcc_version
has gcc in legacy reasons, updated compiler_version
or in future).
save template , create new project (you may have restart xcode if open). compiler should set llvm now.
however, don't recommend llvm still isn't 100% fit deploying applications users.
Comments
Post a Comment