Re: Default optimizations
Re: Default optimizations
- Subject: Re: Default optimizations
- From: Scott Tooker <email@hidden>
- Date: Mon, 27 Oct 2003 12:07:02 -0800
While the UI to access and modify the build settings has changed from
Project Builder, for the most part the rules of inheritance haven't
changed from the Project Builder days (i.e. build styles still override
the active target).
The best way to structure this is to set up the base target for
deployment and then put any development overrides into the
"Development" build style (or whatever build style you use for
development).
In your case you want to turn off debugging symbols and use -Os in the
target and then turn on debugging symbols and set the optimization to
-O0 in the buildstyle.
BTW, the 'Common Settings' and 'Current Settings' are not panels, but
collections that contain a subset of all the build settings. 'Common
Settings' are the set of build settings that are "commomly used".
'Current Settings' are the set of build settings that you have modified
to be different from the default (and any custom build setting you have
added).
Scott
On Oct 27, 2003, at 7:06 AM, Dario Accornero wrote:
> Hello,
>
> I am working on a static library, created as an empty project to which
> I've added Debug and Release "BSD Static Library" targets. I must say
> I find the new way of specifying build settings very confusing wrt
> ProjectBuilder, and in fact I cannot kick Xcode into doing what I
> want...
>
> The Debug target should be built with -g and -O0, the Release one
> without -g and with -Os. For the moment I am happy with a Development
> build style, but why is the default optimization level -OS ?!?
>
> How should I specify my settings for a given target? Right now I've
> tried to copy the Optimization entry from the Common Settings panel to
> the Current Settings panel, into which I have specified None. But my
> build starts with *both* -Os and -g, which I don't see as a
> particularly useful default combination for a Development debug
> build...
>
> Confused,
> Dario
> _______________________________________________
> 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.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.