• 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: Xcode and ccache
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode and ccache


  • Subject: Re: Xcode and ccache
  • From: "William H. Schultz" <email@hidden>
  • Date: Wed, 12 Apr 2006 10:58:48 -0700

Ah, the CPLUSPLUS is what I was missing.  Thanks!


Hank Schultz Cedrus Corporation http://www.cedrus.com/



On Apr 12, 2006, at 10:40 AM, Clark Cox wrote:

I set the CC and CPLUSPLUS build settings in my xcconfig file, and I
quit Xcode. It seemed that it took quitting and restarting Xcode for
it to pick up the changes.

On 4/12/06, William H. Schultz <email@hidden> wrote:
How did you get it to work? I've tried setting the CC flag for the
project and setting up an xcconfig file. No luck. It's still using /
usr/bin/gcc-4.0 for builds.



Hank Schultz Cedrus Corporation http://www.cedrus.com/



On Apr 12, 2006, at 7:37 AM, Clark Cox wrote:

On 4/11/06, Clark Cox <email@hidden> wrote:
Setting the CC build setting does not seem to have any effect. For
instance, I have tried setting:

CC = /usr/local/bin/gcc-4.0

in my Project settings, Target settings and in an .xcconfig file.
However, when I build, xcode is still calling

/usr/bin/gcc-4.0

False alarm, the calls to the /usr/bin/ compilers were actually
showing up during the linking of the product. (That teaches me to rely
on simple grep'ing of the output)


I started to go with Steve's solution of moving the "real" compilers
to the side, and replacing them with links to ccache (or a wrapper
thereof), but that seems to really confuse gcc_select. (Though Steve,
your patches to ccache are quite useful)


On 3/31/06, Chris Espinosa <email@hidden> wrote:


On Mar 17, 2006, at 5:51 AM, Clark Cox wrote:



I was wondering if anyone knows how to get Xcode to use ccache as
it's

compiler. I've installed ccache, and put appropriate links in my
path.

This works perfectly for things built via make, or by directly
calling

gcc from the commandline. However, seeing as Xcode calls the
compiler

with an absolute path "/usr/bin/gcc", distcc is never being called

when building projects via xcodebuild or from the Xcode GUI.

Xcode uses the path to the compiler defined in the Rules tab of
the Targets
inspector, or by the value of the $(CC) build setting.  Try
setting those.

-- Clark S. Cox III email@hidden My CV/Resume: http://homepage.mac.com/clarkcox3/files/Resume.pdf http://homepage.mac.com/clarkcox3/files/Resume.html


_______________________________________________
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: 
 >Re: Xcode and ccache (From: "Clark Cox" <email@hidden>)
 >Re: Xcode and ccache (From: "Clark Cox" <email@hidden>)

  • Prev by Date: Re: Xcode and ccache
  • Next by Date: Re: remote debugging, can't see source code
  • Previous by thread: Re: Xcode and ccache
  • Next by thread: Re: Xcode and ccache
  • Index(es):
    • Date
    • Thread