[Ns-developers] Tip: WAFCACHE
Gustavo Carneiro
gjcarneiro at gmail.com
Tue Oct 28 04:38:52 PDT 2008
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
More information about the Ns-developers
mailing list