Caching build objects: Waf and ccache
Stanislav Pankevich
s.pankevich at gmail.com
Tue Oct 19 08:56:58 UTC 2021
Hi Thomas,
Sorry for the delay, I could only get to testing this today and it does
work! I will see if we have any issues resulting from overriding the CC. I
have left a link to this thread on StackOverflow:
https://stackoverflow.com/a/69627816/598057.
Thanks for your help.
Stanislav
On Sun, Oct 10, 2021 at 10:08 AM Thomas Nagy <tnagy at waf.io> wrote:
> Are you looking for general instructions or are you trying to optimize the
> rtems build?
>
> To wrap the compiler using ccache, override the environment variables
> during the configuration:
> CXX='ccache gxx' CC='ccache gcc' waf configure
>
> The rtems manual does not advertise it, so it this may void your warranty:
> CC="ccache /home/user/quick-start/rtems/6/bin/sparc-rtems6-gcc" ./waf
> configure --prefix=$HOME/quick-start/rtems/6
>
> The wafcache extension is a different system: if the wafcache.py is added
> to a project (it is not a default option yet), all build results (link,
> results, manual pages) become shareable using a filesystem directory or
> over the network. It is probably unnecessary to import it in rtems unless
> you are addressing a specific performance issue.
>
> Thomas
>
> On Tue, 5 Oct 2021 11:17:26 +0200, Stanislav Pankevich <
> s.pankevich at gmail.com> wrote:
>
> > Hello everyone,
> >
> > I have a very specific question about the Waf build system. I apologize
> if
> > I missed this information somewhere in the documentation.
> >
> > From looking at ./waf --help it doesn't look like Waf would have a
> > ccache-like functionality built in.
> >
> > When using CMake build system, I am used to providing
> >
> > -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
> >
> > that makes CMake switch to using ccache. Is there an equivalent option
> for
> > Waf or is there a native way in Waf for caching object artifacts?
> >
> > Thank you,
> >
> > Stanislav
> > _______________________________________________
> > users mailing list
> > users at rtems.org
> > http://lists.rtems.org/mailman/listinfo/users
>
>
>
>
More information about the users
mailing list