arm-apple-darwin11-llvm-g++-4.2 在哪里或者在哪里可以更改编译器?
我想编译一个arm架构的lib。显然 Xcode 已插入路径“arm-apple-darwin11-llvm-g++-4.2”。
有两个问题:
- 在哪里可以更改此设置?
- 我的系统上只找到了arm-apple-darwin10-llvm-g++-4.2,如何更新到arm-apple-darwin11-llvm-g++-4.2?
I want to compile a lib for arm architecture. Apparently Xcode has inserted a path "arm-apple-darwin11-llvm-g++-4.2".
Two Questions:
- Where can I change this setting?
- I only find the arm-apple-darwin10-llvm-g++-4.2 on my system, how can I update to arm-apple-darwin11-llvm-g++-4.2?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通常可以通过单击您的项目,然后在“构建选项”下选择“构建设置”来选择 XCode 编译器。
Darwin11 是 OS X Lion 10.7,
所以当你想升级编译器时,你必须升级你的操作系统并重新安装XCode。
编辑:正如我刚刚看到的,arm 编译器似乎没有 darwin11 变体。只有 i686(和 x86_64)-apple-darwin11 编译器。
也许arm的darwin11会在下一个版本中?我不知道......但 XCode 4.2.1(4D502) - 当前的生产版本 - 不应该指 arm-apple-darwin11-llvm-g++-4.2 。
然而,10.7 SDK目录中有一个名为arm-apple-darwin11的目录,但在我的系统(10.7.2最新的MBA,从未安装过10.6)上它是空的。
The XCode compiler can usually be selected by clicking your project and then selecting "Build Settings" and there under "Build Options".
Darwin11 is OS X Lion 10.7,
so when you want to upgrade the compiler, you will have to upgrade your OS and reinstall XCode.
Edit: As I just have seen, there seems to be no darwin11 variant for the arm compiler. There is only a i686 (and x86_64)-apple-darwin11 compiler.
Maybe the darwin11 for arm is in the next release? I don't know...but XCode 4.2.1(4D502) - the current production release - shouldn't be referring to an arm-apple-darwin11-llvm-g++-4.2 .
There is, however, a directory called arm-apple-darwin11 in the 10.7 SDK directories, but on my system (10.7.2 latest MBA, never had 10.6 installed on it) its empty.
apple darwin 是 OSX 的核心,我认为运行 darwin 11 最简单的方法(如果不是唯一的方法)是将您的 OSX 升级到 10.7.1
编辑:该死的 cli_hlt 你太快了!
apple darwin is the core of OSX, I think the easiest way (if not the only one) to get darwin 11 running is to upgrade your OSX to 10.7.1
edit: damn cli_hlt you're fast!