diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-07 21:37:48 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-01-07 21:37:48 -0500 |
commit | 36c233fe6ce570ce85224626ce7aba4a2607537f (patch) | |
tree | e8c1f9f02766cf5f7ea10487967be2c17f49e906 /wscript | |
parent | c235d3da994aba4febd644afa09bd5c836c050d5 (diff) | |
parent | 382eb0fc6842f202901245709534477b90bda461 (diff) |
Merge branch 'master' into cairocanvas
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -163,6 +163,11 @@ def set_compiler_flags (conf,opt): # Prevents visibility issues in standard headers conf.define("_DARWIN_C_SOURCE", 1) + if conf.options.asan: + conf.check_cxx(cxxflags=["-fsanitize=address"], linkflags=["-fsanitize=address"]) + cxx_flags.append('-fsanitize=address') + linker_flags.append('-fsanitize=address') + if is_clang and platform == "darwin": # Silence warnings about the non-existing osx clang compiler flags # -compatibility_version and -current_version. These are Waf @@ -505,6 +510,8 @@ def options(opt): help='Do not ask questions that require confirmation during the build') opt.add_option('--cxx11', action='store_true', default=False, dest='cxx11', help='Turn on c++11 compiler flags (-std=c++11)') + opt.add_option('--address-sanitizer', action='store_true', default=False, dest='asan', + help='Turn on AddressSanitizer (requires GCC >= 4.8 or clang)') for i in children: opt.recurse(i) |