I'm not sure of the particulars, but I believe ccache doesn't share the results between two object directories unless you set it up explicitly to use relative paths. Or something like that.
https://ccache.samba.org/manual.html#_compiling_in_different_directories On Fri, Aug 19, 2016 at 3:45 PM, <zbranie...@mozilla.com> wrote: > I'm currently trying to build two builds at once and place them in > different directories based on MOZ_OBJDIR. > > So, I'm doing sth like this: > > 1) rm -rf ./obj1;rm -rf ./obj2; > 1) set MOZ_OBJDIR=@TOPSRCDIR@/obj1 > 2) ./mach build > 3) set MOZ_OBJDIR=@TOPSRCDIR@/obj2 > 4) ./mach build > > > My full mozconfig looks like this: > > mk_add_options MOZ_MAKE_FLAGS="-j8" > mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj1 > mk_add_options PYTHON=/usr/bin/python2 > ac_add_options --disable-debug > ac_add_options --enable-optimize > ac_add_options --enable-debug-js-modules > ac_add_options --with-ccache=/usr/bin/ccache > > The first build finishes with: > > 46:48.98 ccache (direct) hit rate: 1.0%; (preprocessed) hit rate: 0.8%; > miss rate: 98.2% > > The second build finishes with: > > 43:57.64 ccache (direct) hit rate: 0.8%; (preprocessed) hit rate: 0.9%; > miss rate: 98.3% > > Both builds take around 43-46 minutes, with ccache hit rate 0.8-1.0%. > > This is the same source - mozilla-central from today. > > What am I doing wrong? > zb. > _______________________________________________ > dev-platform mailing list > dev-platform@lists.mozilla.org > https://lists.mozilla.org/listinfo/dev-platform > _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform