• 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: Controlling optimization level per function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Controlling optimization level per function


  • Subject: Re: Controlling optimization level per function
  • From: Eric Gorr <email@hidden>
  • Date: Fri, 9 Jul 2010 15:13:21 -0400

On Jul 9, 2010, at 3:07 PM, Sean McBride wrote:

> On Fri, 9 Jul 2010 15:05:28 -0400, Eric Gorr said:
>
>>> Not sure, but you can use per-file compiler flags, so you could maybe
>>> move your problematic code to a file on its own.
>>
>> I tried hunting for how to do that, but couldn't find the documentation
>> for how to setup a compile flag for my .cpp file.
>>
>> Do you know how it is done?
>
> select the file in the project, do Cmd-I, go to the Build tab, enter flags.

Ah.

I finally spotted the build tab.

One needs to go to the Target you are building, find the file in the Compile Sources section, do Cmd-I, and the Build tab will be there.

Simply selecting the file in the Group Tree and pressing Cmd-I does not show a build tab.

Will be trying to modify the optimization level for the file soon.


Thanks.


 _______________________________________________
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

  • Follow-Ups:
    • Compiler Weirdness and possible bug ( was Re: Controlling optimization level per function )
      • From: Eric Gorr <email@hidden>
References: 
 >Controlling optimization level per function (From: Eric Gorr <email@hidden>)
 >Re: Controlling optimization level per function (From: "Sean McBride" <email@hidden>)
 >Re: Controlling optimization level per function (From: Eric Gorr <email@hidden>)
 >Re: Controlling optimization level per function (From: "Sean McBride" <email@hidden>)

  • Prev by Date: Re: Controlling optimization level per function
  • Next by Date: Xcode and R
  • Previous by thread: Re: Controlling optimization level per function
  • Next by thread: Compiler Weirdness and possible bug ( was Re: Controlling optimization level per function )
  • Index(es):
    • Date
    • Thread