Out of tree builds with waf?

Karel Gardas karel.gardas at centrum.cz
Thu Nov 5 17:37:54 UTC 2020


On 11/5/20 6:27 PM, Sebastian Huber wrote:
> 2. Waf somehow remembers this configuration. You can call "./waf" to
> build it. So, there must be some hidden state in the source tree. This
> is not really an out of tree build. You cannot have multiple independent
> build trees.

When your build system sucks and does not support out-of-tree builds,
then always last hope is to link dir. e.g. install lndir (from
xutils-dev on ubuntu 20.04, your distro may have it somewhere else) and
then just lndir <rtems-source-dir> -- which will create directory
structure and to it symbolic links of all files as in source dir.

This way, even stubborn build systems may be taught to support out of
source tree builds...

Karel




More information about the devel mailing list