On Fri, Aug 04, 2017 at 11:25:52AM +0200, Simon Sapin wrote: > On 26/07/2017 19:22, Ted Mielczarek wrote: > > > I’ve ended up keeping "classic" ccache for C and C++ code and adding > > > 'export RUSTC_WRAPPER=sccache' to my mach wrapper script in order to use > > > sccache for Rust code. (Having this line with or without 'export' in > > > .mozconfig did not appear to do anything. Can mozconfig set arbitrary > > > environment variables?) > > > No, mozconfig variable setting is sort of restricted. Bare variable > > assignments (with or without export) are evaluated in the context of > > configure, but don't survive to the Makefile environment. If you write > > it as `mk_add_options export RUSTC_WRAPPER=sccache` that ought to work, > > since that will be set as an exported Makefile variable, meaning it will > > be set in the environment for commands executed by make. > > `mk_add_options export RUSTC_WRAPPER=sccache` causes an error:
It's `mk_add_options "export RUSTC_WRAPPER=sccache"`. Mike _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform