Closed Bug 1082274 Opened 10 years ago Closed 10 years ago

Rewrite https://developer.mozilla.org/ja/docs/ccache: Add configure option --with-compiler-wrapper

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: ishikawa, Unassigned)

References

Details

+++ This bug was initially created as a clone of Bug #867750 +++

I changed the title:

Someone needs to rewrite the documentation that explains how to
use ccache for compilation:

https://developer.mozilla.org/ja/docs/ccache

"--with-ccache=..." is not honored any more in the new build
infrastructure.

--with-compiler-wrapper="/usr/bin/ccache" is the way to go.

See Bug 867750, and
Bug Bug 1081682 

TIA

PS: There may be misunderstanding on my side about
what --with-compiler-wrapper does, but
only specifying --with-ccache=/usr/bin/ccache no longer works for
large portion of M-C subdirectories.

The comment in 
https://bugzilla.mozilla.org/show_bug.cgi?id=867750#c5 no longer holds:
>I tried it locally with --with-compiler-wrapper="distcc ccache" and it seems >to work fine. The --with-ccache is unaffected.
(it being --with-compiler-wrapper).
--with--ccache is simply IGNORED now in the new build infrastructure, I think.
> --with-compiler-wrapper="/usr/bin/ccache" is the way to go.

No it's not. --with-ccache does more than --with-compiler-wrapper.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
(In reply to Mike Hommey [:glandium] from comment #1)
> > --with-compiler-wrapper="/usr/bin/ccache" is the way to go.
> 
> No it's not. --with-ccache does more than --with-compiler-wrapper.

I still don't understand: why then C-C configure does not honor
--with-ccache=... for js/src and other subdirctories of M-C portion under ./mozilla???

Oh, do you mean I need BOTH --with-ccache=/usr/bin/ccache
and --with-compiler-wrapper=/usr/bin/ccache ???
(This is how my mozconfig was modified yesterday.)

Anyway, the web page does not reflect reality any more.

https://developer.mozilla.org/en/docs/ccache
(I hate it when a system (Google in this case) tries to be clever and
gets in the way. The URL I wrote in my original post was
for Japanese version of the document: though it is still in English since no translation is available.)

--- begin quote
Configuring Mozilla Builds

To configure Mozilla builds to use ccache, you'll need to configure some make and configure options. In your .mozconfig, add the following:

 ac_add_options --with-ccache=/usr/local/bin/ccache

--- end quote

The addition above is not enough any more (for configuring M-C portion of C-C at least.)
This is the rewriting I think is necessary.

TIA
Resolution: INVALID → FIXED
Summary: Rewrite https://developer.mozilla.org/ja/docs/ccache: Add configure option to use distcc, --with- → Rewrite https://developer.mozilla.org/ja/docs/ccache: Add configure option --with-compiler-wrapper
(In reply to ISHIKAWA, Chiaki from comment #2)
> (In reply to Mike Hommey [:glandium] from comment #1)
> > > --with-compiler-wrapper="/usr/bin/ccache" is the way to go.
> > 
> > No it's not. --with-ccache does more than --with-compiler-wrapper.
> 
> I still don't understand: why then C-C configure does not honor
> --with-ccache=... for js/src and other subdirctories of M-C portion under
> ./mozilla???

Because there is a bug that you filed, and that now has a patch.
Resolution: FIXED → INVALID
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.