From 52bb9a6160652104e30ec54032b6c244192a487e Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 1 Feb 2024 01:09:04 +0100 Subject: Add --enable-asan option to configure. --- wscript | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'wscript') diff --git a/wscript b/wscript index 7395679fb..da306c448 100644 --- a/wscript +++ b/wscript @@ -78,6 +78,7 @@ def options(opt): opt.add_option('--enable-disk', action='store_true', default=False, help='build dcpomatic2_disk tool; requires Boost process, lwext4 and nanomsg libraries') 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') @@ -121,6 +122,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: -- cgit v1.2.3 From b473966f5e6e434d153d729be1f02a9c2dc9857a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 3 Feb 2024 00:09:14 +0100 Subject: OSX -> macOS --- wscript | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index da306c448..26859789a 100644 --- a/wscript +++ b/wscript @@ -153,7 +153,7 @@ def configure(conf): pass # - # Windows/Linux/OS X specific + # Windows/Linux/macOS specific # # Windows @@ -606,7 +606,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 = '' -- cgit v1.2.3