Re: OTHER_CFLAGS
Re: OTHER_CFLAGS
- Subject: Re: OTHER_CFLAGS
- From: Eric Welch <email@hidden>
- Date: Wed, 11 Jan 2006 16:55:43 -0800
Eric,
Thanks for your "something like..." below. A little trial and error found that if you add the following it all works:
2. Setting OTHER_CFLAGS to $(OTHER_CFLAGS_$(CURRENT_ARCH))
If this is the right way to do this, it would probably be good to update the documentation...
eric On Jan 11, 2006, at 4:12 PM, Eric Albert wrote: On Jan 11, 2006, at 3:51 PM, Eric Welch wrote: Can anyone confirm that OTHER_CFLAGS is a build setting with per-architecture variants in XCode 2.2?
In other words you should be able to set OTHER_CFLAGS_ppc and OTHER_CFLAGS_i386
and have those CFlags passed to the appropriate compiler calls, for the appropriate architectures. There is a way to have per-architecture OTHER_CFLAGS, but I'm afraid I don't recall what it is right now. It's different from the other per-architecture flags -- something like setting the ones above and then setting OTHER_CFLAGS to OTHER_CFLAGS_$($arch).
A more interesting question to me at least is what C flags you're planning to set this way. The most common architecture-specific flags are actually understood and ignored by the other side of the compiler, so it's pretty unusual to see code that really needs this.
Just wondering, Eric
|
_______________________________________________
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