Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
xcode:如何使用GCC\u version字段指定clang版本?_Xcode_Gcc_Llvm_Clang - Fatal编程技术网

xcode:如何使用GCC\u version字段指定clang版本?

xcode:如何使用GCC\u version字段指定clang版本?,xcode,gcc,llvm,clang,Xcode,Gcc,Llvm,Clang,我正在运行Xcode4.5。我们的项目从旧的Xcode开始,并使用一个元文件指定编译器版本,其中 GCC_VERSION = com.apple.compilers.llvm.clang.1_0 据我所知,这指向旧版本的LLVM,我想知道在哪里可以找到规范的版本号,该版本号指定了使用Xcode4.5的最新LLVM(4.1) 谢谢 据我所知,这指向旧版本的LLVM,我想知道在哪里可以找到规范的版本号,该版本号指定了使用Xcode4.5的最新LLVM(4.1) 实际上,GCC_VERSION=co

我正在运行Xcode4.5。我们的项目从旧的Xcode开始,并使用一个元文件指定编译器版本,其中

GCC_VERSION = com.apple.compilers.llvm.clang.1_0
据我所知,这指向旧版本的LLVM,我想知道在哪里可以找到规范的版本号,该版本号指定了使用Xcode4.5的最新LLVM(4.1)

谢谢

据我所知,这指向旧版本的LLVM,我想知道在哪里可以找到规范的版本号,该版本号指定了使用Xcode4.5的最新LLVM(4.1)

实际上,
GCC_VERSION=com.apple.compilers.llvm.clang.1_0
指向Xcode的“位置”所指的clang工具集

因此,只需在“Xcode>首选项>位置>位置(选项卡)>命令行工具”中指定工具集,然后使用
GCC\u VERSION=com.apple.compilers.llvm.clang.1\u 0
将clang指定为编译器。然后,您在首选项中指定的工具集定义了您正在使用的clang的版本/构建。

同样适用于终端怪胎
xcodebuild-sdk macosx10.X-arch x86\u 64 GCC\u VERSION=com.apple.compilers.llvm.clang.1\u 0
。。。