Only build asan-launcher if --sanitize is given

Fixes #328
This commit is contained in:
Kovid Goyal 2018-02-16 08:56:30 +05:30
parent 8c5646b81b
commit 70125e0de5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -662,7 +662,8 @@ def main():
os.chdir(os.path.dirname(os.path.abspath(__file__)))
if args.action == 'build':
build(args)
build_asan_launcher(args)
if args.sanitize:
build_asan_launcher(args)
if args.profile:
build_linux_launcher(args)
print('kitty profile executable is', 'kitty-profile')