1

また、それぞれのラベルの真向かいにそれらをリストすると、デバッグとリリースの両方に設定されますか?

4

2 に答える 2

5

The Xcode help provides fairly clear definitions:

Name: Other C Flags

Abstract: Space-separated list of additional flags to pass to the compiler for C and Objective-C files. Be sure to backslash-escape any arguments that contain spaces or special characters (e.g. path names that may contain spaces). Use this setting if Xcode does not already provide UI for a particular C or Objective-C compiler flag. [OTHER_CFLAGS]

Name: Other C++ Flags

Abstract: Space-separated list of additional flags to pass to the compiler for C++ and Objective-C++ files. Be sure to backslash-escape any arguments that contain spaces or special characters (e.g. path names that may contain spaces). Use this setting if Xcode does not already provide UI for a C++ or Objective-C++ compiler flag. [OTHER_CPLUSPLUSFLAGS]

So "Other C Flags" are passed to the compiler when compiling C and Obj-C source files. "Other C++ Flags" are passed to the compiler when compiling C++ and Obj-C++ source files.

To your second question: Yes. You can specify flags for debug or release or another configuration by hitting the disclosure triangle to the left of "Other C Flags" and then putting the desired flag on the line corresponding to the desired configuration.

于 2012-03-06T01:06:09.780 に答える
1

Cフラグは、CおよびObjective-Cソースファイルをコンパイルするときに使用されます。C ++フラグは、C++およびObjective-C++ソースファイルをコンパイルするときに使用されます。それらはとに類似していCFLAGSます。CXXFLAGSmake

デバッグビルドとリリースビルドについてはわかりませんが、どちらの場合も使用されると思います。確かに簡単に試すことができます。

于 2012-03-06T01:02:45.707 に答える