Re: Utilizing OTHER_CFLAGS properly?
Re: Utilizing OTHER_CFLAGS properly?
- Subject: Re: Utilizing OTHER_CFLAGS properly?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Wed, 23 Dec 2009 15:20:41 +0100
I should have said predefined instead of built-in.
In your target build setting, you should have a predefined entry named "Other C Flags".
This is the one you can edit to add
-DTEST_FLAG=1
Note that adding this flag is what "Preprocessor Macros" build setting should do when you set it to
TEST_FLAG=1
but as you said "Preprocessor Macros" does not work, just try to workaround it by setting c flags directly.
Le 23 déc. 2009 à 15:08, Sam Krishna a écrit :
> Hi Sherm,
>
> I didn't read this as carefully as I thought. Here goes...
>
> how do I access the built-in settings?
>
> On Dec 22, 2009, at 12:39 PM, Sherm Pendley wrote:
>
>> On Tue, Dec 22, 2009 at 1:26 PM, Sam Krishna <email@hidden> wrote:
>>>
>>> On Dec 22, 2009, at 10:01 AM, Fritz Anderson wrote:
>>>
>>>> There's already a UI setting for preprocessor defines. Search the
>>>> build-setting list for "Preprocessor Macros" and "Preprocessor Macros not
>>>> used in Precompiled Headers."
>>>
>>> OK, I've removed OTHER_CFLAGS=1 from the Build Settings and here's what I'm
>>> trying now:
>>>
>>> (1) I've set a User-Defined setting for TEST_FLAG
>>
>> Xcode's user-defined build settings don't define preprocessor macros.
>> Use the built-in settings, that's why they're there.
>>
>> sherm--
>>
>> --
>> Cocoa programming in Perl:
>> http://www.camelbones.org
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
-- Jean-Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden