diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-10-30 11:17:30 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-10-30 23:49:00 +1100 |
commit | adabc3d082a2e23a9bca9282ad5e7be07fa776e9 (patch) | |
tree | 89db3a0dd538af211eb2060895f761f4f162e7cb /buildtools/wafsamba/wscript | |
parent | df34bb268566ea86f2b77ed7bb04983b8c05e4c3 (diff) | |
download | samba-adabc3d082a2e23a9bca9282ad5e7be07fa776e9.tar.gz samba-adabc3d082a2e23a9bca9282ad5e7be07fa776e9.tar.bz2 samba-adabc3d082a2e23a9bca9282ad5e7be07fa776e9.zip |
waf: added --symbol-check option
this adds checking of the symbols in all our object files, libraries
and syslibs. It will form the basis in future for a lot more checks,
but for now it just checks basic rules like not allowing us to use
symbols that are in system libs.
Currently this is enabled only if you use the --symbol-check option,
(or use make with SYMBOLCHECK=1) but I intend to make this always
enabled once it has had more testing.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'buildtools/wafsamba/wscript')
-rw-r--r-- | buildtools/wafsamba/wscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript index 7c40c8c507..49f1cf4604 100644 --- a/buildtools/wafsamba/wscript +++ b/buildtools/wafsamba/wscript @@ -104,6 +104,10 @@ def set_options(opt): help=("Show dependency tree for the given target"), dest='SHOWDEPS', default='') + gr.add_option('--symbol-check', + help=("check symbols in object files against project rules"), + action='store_true', dest='SYMBOLCHECK', default=False) + gr.add_option('--show-duplicates', help=("Show objects which are included in multiple binaries or libraries"), action='store_true', dest='SHOW_DUPLICATES', default=False) |