Allow customized ccache path in the .userconfig file

RESOLVED WORKSFORME

Status

RESOLVED WORKSFORME
4 years ago
4 years ago

People

(Reporter: TYLin, Assigned: TYLin)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 obsolete attachment)

(Assignee)

Description

4 years ago
We could customize ccache path by add a variable CCACHE_PATH in [1].

ac_add_options --with-ccache="$CCACHE_PATH"

In this way, we could use distcc by setting "export CCACHE_PATH=/usr/local/bin/distcc" in .userconfig.

[1] https://github.com/mozilla-b2g/gonk-misc/blob/master/default-gecko-config#L33
(Assignee)

Comment 1

4 years ago
Created attachment 8506805 [details] [review]
Github pull request #202
Assignee: nobody → tlin
Status: NEW → ASSIGNED
Attachment #8506805 - Flags: review?(mh+mozilla)
Attachment #8506805 - Flags: review?(mh+mozilla) → review?(mwu)
(Assignee)

Comment 2

4 years ago
Comment on attachment 8506805 [details] [review]
Github pull request #202

CCACHE_PATH happens to be an environment variable which has other meaning. [1] It's not good to use CCACHE_PATH here.

[1] http://ccache.samba.org/manual-3.0pre1.html#_extra_options
Attachment #8506805 - Flags: review?(mwu)
(Assignee)

Comment 3

4 years ago
Actually, to use distcc with ccache, we could set export CCACHE_PREFIX="distcc" in .userconfig as described in [1]. No need to modify the default-gecko-config.

[1] http://ccache.samba.org/manual-3.0pre1.html#_using_ccache_with_distcc
Status: ASSIGNED → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → WORKSFORME
(Assignee)

Updated

4 years ago
Attachment #8506805 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.