• 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: Default build settings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Default build settings


  • Subject: Re: Default build settings
  • From: Scott Tooker <email@hidden>
  • Date: Thu, 13 Oct 2005 11:18:52 -0700


On Oct 13, 2005, at 6:56 AM, Andreas Grosam wrote:

When creating a target within a project, the default build-settings seem not always to be optimal.

For the next version of Xcode, we have cleaned up the target templates to better match the project templates and be more correct in the settings that are used.



For instance, when creating a static-library-target, these build- settings were set:


Debug: Optimization Level					Fastest, Smallest
Debug: Generate Position-Dependend Code		<off not overridden>


IMO, Optimization Level should be None[-O0] in Debug- configurations, and -O2 or higher for Release.

We have -O0 for Debug and -Os for Release.


Generate Position-Dependend Code should be on for static libs, or do I miss something?


Dead Code Stripping should be on for static lib, at least for Release configurations, although this might cause trouble sometimes. Any objections not to do this per default?


There are a couple of others not set optimal e.g. OPTIMIZATION_CLAGS which is set to -O0 in all Configurations, and which overrides Optimization Level.
What's the purpose of OPTIMIZATION_CLAGS at all? Isn't it used for additionally flags like -ffast-math, -frename-registers, etc. and shouldn't it be an empty string in all configurations (per default)?

If you see a setting listed in all caps, that's most likely a holdout from the old ProjectBuilder build system (you can check the build settings notes to be sure). We have cleaned this up for the next version, but if you see such settings listed in a native target, you can remove them without issue.


Scott




Regards Andreas

_______________________________________________
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

_______________________________________________ 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
References: 
 >Default build settings (From: Andreas Grosam <email@hidden>)

  • Prev by Date: Re: Project name restrictions
  • Next by Date: Re: type/value mismatch error in template
  • Previous by thread: Re: Default build settings
  • Next by thread: mystery link warnings between System.framework and libmx.dylib
  • Index(es):
    • Date
    • Thread