diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-06-02 15:35:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-06-02 15:35:53 +0100 |
| commit | 1850e3c12522298ddb3e66ccf30c6b1207182d5f (patch) | |
| tree | ec14b9f4d9444bc0d187c7e98c6a7cec640c6c19 /wscript | |
| parent | bff3ee89298b12f5e3dcb16f13a3e30e542ce87d (diff) | |
Minor trimming of false positives from valgrind.
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10,6 +10,7 @@ def options(opt): opt.add_option('--osx', action='store_true', default=False, help='set up to build on OS X') opt.add_option('--enable-debug', action='store_true', default=False, help='build with debugging information and without optimisation') opt.add_option('--static', action='store_true', default=False, help='build libdcp and in-tree dependencies statically, and link statically to openjpeg and cxml') + opt.add_option('--valgrind', action='store_true', default=False, help='build with instructions to Valgrind to reduce false positives') def configure(conf): conf.load('compiler_cxx') @@ -26,6 +27,9 @@ def configure(conf): else: conf.env.append_value('CXXFLAGS', '-DLIBDCP_POSIX') + if conf.options.valgrind: + conf.env.append_value('CXXFLAGS', '-DLIBDCP_VALGRIND') + if not conf.options.osx: conf.env.append_value('CXXFLAGS', ['-Wno-unused-result', '-Wno-unused-parameter']) |
