• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: appending C flags
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: appending C flags


  • Subject: Re: appending C flags
  • From: Anders Bertelrud <email@hidden>
  • Date: Tue, 10 Aug 2004 10:28:19 -0700

There should be no difference between Xcode 1.2 and Xcode 1.5 in how a setting in a build style overrides a setting in a target. Certainly, we have made no deliberate changes in that area, and I have not heard of such an issue.

Now, there was definitely a change between Project Builder and Xcode: In Project Builder, there was a += / = toggle to click on, which was obvious but somewhat limiting (since you could only append, not prepend etc). In Xcode, the widget was removed but the special macro expansion "$(value)" was introduced. This lets you insert the overridden value anywhere in the string, e.g. "Other C Flags" = "-DABC $(value) -DDEF" would cause the overridden value to be inserted after the -DABC but before the -DDEF. While more flexible, this is unfortunately also much more hidden than the Project Builder way. We have definitely heard that feedback loud and clear, and we're considering ways of making it more obvious.

Anders

On Aug 10, 2004, at 09.53, Marc Poirier wrote:

I am having trouble appending C flags to a build style. What I want is for:

-D NDEBUG

to be added to the "Other C Flags" for the Deployment build style but not Development build style. But I still want all of the "Other C Flags" that I have defined for the target in general to be used, too. So I just want -D NDEBUG to be added on to the list of other flags.

In Project Builder, there was an explicit way to do this. In the build settings view, you could click on the = between the build option and value and it would turn into a += to mean that you were appending a value. In Xcode, I've never found a way to do this. However, at least in 1.2, the behavior seemed to be what I wanted for "Other C Flags", it seemed to be appending. In Xcode 1.5, however, the value that I set in the Deployment style is wiping out what I set for the target in general rather than adding to it.

Does anyone know if this is just a change in 1.5 that I can't do anything about, or if there is some way to specify that I want my C flags appended?

thanks,
Marc
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.


References: 
 >appending C flags (From: Marc Poirier <email@hidden>)

  • Prev by Date: Re: linking an embedded framework under Xcode 1.5
  • Next by Date: XCode and SourceForge
  • Previous by thread: Re: appending C flags
  • Next by thread: Re: appending C flags
  • Index(es):
    • Date
    • Thread