在Xcode中设置GCC 4.2.1选项

时间:2022-02-20 23:10:38

I have a few questions about Xcode and interaction with GCC 4.2.1:

我有一些关于Xcode和与GCC 4.2.1交互的问题:

  1. It doesn't seem as if Xcode Target Properties inspector exposes all possible GCC options. Is this correct?

    似乎Xcode Target Properties检查器不会公开所有可能的GCC选项。它是否正确?

  2. More specifically, I'm interested in setting the "mfpu" option, as mentioned in the arm_neon.h intrinsics header. Is this possible or supported? Or perhaps set as a side-effect of some other Xcode setting?

    更具体地说,我有兴趣设置“mfpu”选项,如arm_neon.h intrinsics标题中所述。这是可能的还是支持的?或者设置为其他一些Xcode设置的副作用?

If anyone has tried this or can post some resources, it would help a lot.

如果有人试过这个或者可以发布一些资源,那将会有很大帮助。

1 个解决方案

#1


There are not checkboxes or menus available each option presented by the compiler, however you can enter any flags you'd like passed to the compiler in the "Other C Flags" field of the Target inspector.

编译器提供的每个选项都没有可用的复选框或菜单,但是您可以在目标检查器的“其他C标志”字段中输入要传递给编译器的任何标志。

Just set "Other C Flags" to "-mfloat-abi=softfp -mfpu=neon" and you'll be set.

只需将“Other C Flags”设置为“-mfloat-abi = softfp -mfpu = neon”即可设置。

#1


There are not checkboxes or menus available each option presented by the compiler, however you can enter any flags you'd like passed to the compiler in the "Other C Flags" field of the Target inspector.

编译器提供的每个选项都没有可用的复选框或菜单,但是您可以在目标检查器的“其他C标志”字段中输入要传递给编译器的任何标志。

Just set "Other C Flags" to "-mfloat-abi=softfp -mfpu=neon" and you'll be set.

只需将“Other C Flags”设置为“-mfloat-abi = softfp -mfpu = neon”即可设置。