Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using ccache with Xcode 4

Is there any way to use ccache with Xcode 4, to improve C++ build time?

Using environment variables I've set CC and CXX to ccache, but the build fails since ccache does not recognise some of the parameters that Xcode 4 outputs.

like image 501
amfcosta Avatar asked Oct 21 '22 20:10

amfcosta


1 Answers

Ccache has Clang support from version 3.2 and newer.

See here for a possible solution on how to use ccache in Xcode: https://pspdfkit.com/blog/2015/ccache-for-fun-and-profit/

like image 61
Joel Rosdahl Avatar answered Oct 24 '22 12:10

Joel Rosdahl