linuxmakefilesconsrebuild

Scons: how to force rebuild?


When using make, I can specify make -B to force rebuild.

But how specify it with scons, to force rebuild all or force rebuild specific folders?


Solution

  • Try this:

    scons --clean [targets]    
    scons --no-cache [targets]
    

    --clean Removes targets and its dependencies

    --no-cache Rebuilds without retrieving already built targets from CacheDir

    Reference: scons --help