将自定义编译器添加到XCode 3.2 [英] Add a custom compiler to XCode 3.2

查看:138
本文介绍了将自定义编译器添加到XCode 3.2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个适用于ARM Cortex-m3的gcc 4.3.3工具链,希望将其集成到XCode中.

I have a working gcc 4.3.3 toolchain for an ARM Cortex-m3 and would like to integrate it into XCode.

有没有一种方法可以设置XCode(3.2)来使用此gcc工具链,而不是内置的GCC 4.2?

Is there a way to set up XCode (3.2) to use this gcc toolchain instead of the built-in GCC 4.2?

到目前为止我尝试过的是: 我添加了GCC 4.2.xcplugin的修改副本,并更改​​了名称,版本和可执行文件路径.它显示在XCode中,但是每当我将"C/C ++编译器版本"设置为自定义编译器时,它都会失败,并显示

What I've tried so far: I've added a modified copy of the GCC 4.2.xcplugin and changed the name, version and executable path. It shows up in XCode but whenever I set the "C/C++ Compiler Version" to the custom compiler it fails with

GCC_VERSION的值"4.3.3"无效

Invalid value '4.3.3' for GCC_VERSION

似乎有效的版本号已在其他地方进行了硬编码,因为即使我删除了原始的GCC 4.2.xcplugin,值4.2仍然有效(但在"C/C ++编译器版本"下拉列表中不再可见)

It seems like the valid version numbers are hardcoded somewhere else because even when I remove the original GCC 4.2.xcplugin, the value 4.2 remains valid (but is not visible in the "C/C++ Compiler Version" drop down anymore).

推荐答案

仅供参考-我将gcc 4.4集成到了最新的Xcode 3.2.4(包括标志)中,请参见

FYI - I got gcc 4.4 integrated into latest Xcode 3.2.4 including flags - see blog at http://skurganov.blogspot.com/

这篇关于将自定义编译器添加到XCode 3.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆