gpt4 book ai didi

xcode:如何使用 GCC_VERSION 字段指定 clang 版本?

转载 作者:行者123 更新时间:2023-12-02 10:32:40 36 4
gpt4 key购买 nike

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

GCC_VERSION = com.apple.compilers.llvm.clang.1_0

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

谢谢!

最佳答案

As far as I know this points to older version of LLVM and I wonder where I can find the canonical version number that specifies the latest LLVM (4.1) with Xcode4.5?

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

因此只需在“Xcode > Preferences > Locations > Locations (Tab) > Command Line Tools”中指定工具集,然后使用 GCC_VERSION = com.apple.compilers.llvm.clang.1_0 来指定clang 作为编译器。然后,您在“首选项”中指定的工具集定义了您正在使用的 clang 的版本/内部版本。

关于xcode:如何使用 GCC_VERSION 字段指定 clang 版本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13237502/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com