• 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:28:30 -0700
  • Resent-date: Wed, 12 Apr 2006 10:29:06 -0700
  • Resent-from: "William H. Schultz" <email@hidden>
  • Resent-message-id: <email@hidden>
  • Resent-to: XCode Users <email@hidden>

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.


Chris


--
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



--
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:
40cedrus.com


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


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