This commit is contained in:
Kovid Goyal
2023-11-16 16:52:09 +05:30
parent 0f60ac2dd7
commit 0bd67620c6

View File

@@ -1100,7 +1100,7 @@ def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 's
sanitize_args = get_sanitize_args(env.cc, env.ccver)
cflags.extend(sanitize_args)
ldflags.extend(sanitize_args)
libs += ['-lasan'] if is_gcc(env.cc) and not is_macos else []
libs += ['-lasan'] if not is_macos and is_gcc(env.cc) else []
else:
cflags.append('-g')
if args.profile: