Bug 177059 - Turn on ccache for Mac cmake builds by default
Summary: Turn on ccache for Mac cmake builds by default
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-09-17 14:41 PDT by Tim Horton
Modified: 2017-11-15 13:07 PST (History)
7 users (show)

See Also:


Attachments
Patch (4.59 KB, patch)
2017-09-17 14:41 PDT, Tim Horton
no flags Details | Formatted Diff | Diff
Patch (6.36 KB, patch)
2017-10-21 01:34 PDT, Tim Horton
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2017-09-17 14:41:17 PDT
Turn on ccache for Mac cmake builds by default
Comment 1 Tim Horton 2017-09-17 14:41:38 PDT
Created attachment 321056 [details]
Patch
Comment 2 Sam Weinig 2017-09-17 15:20:50 PDT
Are there any downsides? Is there a way to disable it if something goes wrong?
Comment 3 Tim Horton 2017-09-17 23:29:44 PDT
(In reply to Sam Weinig from comment #2)
> Are there any downsides?

🤷‍♂️

(but for now this whole build path is totally experimental so it won't affect anyone)

> Is there a way to disable it if something goes wrong?

The zero people working on the Mac CMake build will know how :P

We should probably add an environment variable, though, like we have for the currently-off-by-default Xcode version, and plumb it through build-webkit and friends.
Comment 4 Geoffrey Garen 2017-09-18 10:57:04 PDT
FWIW, I'd prefer an argument to build-webkit over an environment variable.
Comment 5 Sam Weinig 2017-09-18 13:07:42 PDT
(In reply to Geoffrey Garen from comment #4)
> FWIW, I'd prefer an argument to build-webkit over an environment variable.

(In reply to Tim Horton from comment #3)
> (In reply to Sam Weinig from comment #2)
> > Are there any downsides?
> 
> 🤷‍♂️
> 
> (but for now this whole build path is totally experimental so it won't
> affect anyone)
> 
> > Is there a way to disable it if something goes wrong?
> 
> The zero people working on the Mac CMake build will know how :P
> 
> We should probably add an environment variable, though, like we have for the
> currently-off-by-default Xcode version, and plumb it through build-webkit
> and friends.

Given this work is (probably) eventually going to have users, it would be good to get the infrastructure in place early (I, like Geoffrey, prefer a script to an environment variable).
Comment 6 Tim Horton 2017-09-18 13:14:18 PDT
(In reply to Sam Weinig from comment #5)
> (In reply to Geoffrey Garen from comment #4)
> > FWIW, I'd prefer an argument to build-webkit over an environment variable.
> 
> (In reply to Tim Horton from comment #3)
> > (In reply to Sam Weinig from comment #2)
> > > Are there any downsides?
> > 
> > 🤷‍♂️
> > 
> > (but for now this whole build path is totally experimental so it won't
> > affect anyone)
> > 
> > > Is there a way to disable it if something goes wrong?
> > 
> > The zero people working on the Mac CMake build will know how :P
> > 
> > We should probably add an environment variable, though, like we have for the
> > currently-off-by-default Xcode version, and plumb it through build-webkit
> > and friends.
> 
> Given this work is (probably) eventually going to have users, it would be
> good to get the infrastructure in place early (I, like Geoffrey, prefer a
> script to an environment variable).

When I said "an environment variable ... and plumb it through build-webkit and friends", I meant "an argument to build-webkit that sets the environment variable", which I think satisfies your desires?

I think we want an environment variable underneath so that it can be set with e.g. `make` and `xcodebuild`, and so that it can be identical to the flag that we already use in `xcodebuild` (which is currently an enable flag instead of a disable flag, but ... identical to it once we flip it).
Comment 7 Tim Horton 2017-10-21 01:34:24 PDT
Created attachment 324498 [details]
Patch
Comment 8 WebKit Commit Bot 2017-10-21 14:42:55 PDT
Comment on attachment 324498 [details]
Patch

Clearing flags on attachment: 324498

Committed r223818: <https://trac.webkit.org/changeset/223818>
Comment 9 WebKit Commit Bot 2017-10-21 14:42:57 PDT
All reviewed patches have been landed.  Closing bug.
Comment 10 Radar WebKit Bug Importer 2017-11-15 13:07:40 PST
<rdar://problem/35568833>