[Ns-developers] Tip: WAFCACHE

Gustavo Carneiro gjcarneiro at gmail.com
Tue Oct 28 04:56:25 PDT 2008


I have to correct myself.

Unfortunately it seems this WAFCACHE feature has suboptimal stability, so
forget what I said :-(

Hopefully in some future waf version this feature will work more stable, but
for now it is better to just no use it.

Sorry for the noise.


2008/10/28 Gustavo Carneiro <gjcarneiro at gmail.com>

> Probably some of you have already tried this feature.  Personally I knew it
> was there, but it hadn't dawned on me yet how useful it is with so little
> effort to setup.
>
> To setup just:
>
> 1. mkdir /tmp/wafcache
> 2. echo "export WAFCACHE=/tmp/wafcache/" >> ~/.bashrc
>
> Then when you start a new shell (so WAFCACHE) is defined, waf will save
> cached compilation files, and use them whenever it can:
>
>
> Entering directory `/home/gjc/projects/ns/ns-3-dev/build'
> restored from cache debug/src/common/tag-list_1.o
> restored from cache debug/src/devices/wifi/mac-rx-middle_1.o
> restored from cache debug/src/devices/wifi/wifi-remote-station-manager_1.o
> restored from cache debug/src/devices/wifi/adhoc-wifi-mac_1.o
> restored from cache debug/src/devices/wifi/nqap-wifi-mac_1.o
> restored from cache debug/src/devices/wifi/nqsta-wifi-mac_1.o
> restored from cache debug/libns3.so
> [...]
>
> This is rather useful for people working with multiple ns-3 branches...
>
> Have fun.
>
> --
> Gustavo J. A. M. Carneiro
> INESC Porto, Telecommunications and Multimedia Unit
> "The universe is always one step beyond logic." -- Frank Herbert
>



-- 
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert


More information about the Ns-developers mailing list