diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-03 22:13:13 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-03 22:13:13 +0100 |
| commit | 52dc2f13d5cd03403da20e1764ba474c829a1a26 (patch) | |
| tree | 28ff84ffc648c499ef3c647c0c85ae15a84d9739 /wscript | |
| parent | 0226862cd32e8b2a10d0cdc0c9c5e7682d364075 (diff) | |
| parent | c9e807a398ffa4c6ba38a26e2721250bdbef10d7 (diff) | |
Merge branch 'main' into v2.17.x
Diffstat (limited to 'wscript')
| -rw-r--r-- | wscript | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -79,6 +79,7 @@ def options(opt): opt.add_option('--enable-grok', action='store_true', default=False, help='build with support for grok J2K encoder') opt.add_option('--warnings-are-errors', action='store_true', default=False, help='build with -Werror') opt.add_option('--wx-config', help='path to wx-config') + opt.add_option('--enable-asan', action='store_true', help='build with asan') def configure(conf): conf.load('compiler_cxx') @@ -125,6 +126,10 @@ def configure(conf): if not conf.options.target_macos_arm64: conf.env.append_value('CXXFLAGS', '-msse') + if conf.options.enable_asan: + conf.env.append_value('CXXFLAGS', '-fsanitize=address') + conf.env.append_value('LINKFLAGS', '-fsanitize=address') + if conf.env['CXX_NAME'] == 'gcc': gcc = conf.env['CC_VERSION'] if int(gcc[0]) >= 8: @@ -155,7 +160,7 @@ def configure(conf): pass # - # Windows/Linux/OS X specific + # Windows/Linux/macOS specific # # Windows @@ -608,7 +613,7 @@ def configure(conf): elif conf.env.TARGET_LINUX: Logs.pprint('YELLOW', '\t' + 'Target'.ljust(25) + ': Linux') elif conf.env.TARGET_OSX: - Logs.pprint('YELLOW', '\t' + 'Target'.ljust(25) + ': OS X') + Logs.pprint('YELLOW', '\t' + 'Target'.ljust(25) + ': macOS') def report(name, variable): linkage = '' |
