问题描述
我有一个适用于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 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(包括标志)中,请参见 http://skurganov.blogspot.com/
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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!