Enable ASAN for macOS CI builds in ci.py

This commit is contained in:
copilot-swe-agent[bot]
2026-06-24 04:14:27 +00:00
committed by Kovid Goyal
parent 903d2a5335
commit bf7689b211
3 changed files with 8 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ NERD_URL = 'https://github.com/ryanoasis/nerd-fonts/releases/latest/download/Ner
is_bundle = os.environ.get('KITTY_BUNDLE') == '1'
is_codeql = os.environ.get('KITTY_CODEQL') == '1'
is_macos = 'darwin' in sys.platform.lower()
running_under_sanitizer = os.environ.get('KITTY_SANITIZE') == '1'
SW = ''
@@ -134,10 +135,8 @@ def install_deps() -> None:
def build_kitty() -> None:
python = shutil.which('python3') if is_bundle else sys.executable
cmd = f'{python} setup.py build --verbose'
if os.environ.get('KITTY_SANITIZE') == '1':
if running_under_sanitizer:
cmd += ' --debug --sanitize'
elif is_macos:
cmd += ' --debug' # for better crash report to debug SIGILL issue
run(cmd)
@@ -145,6 +144,8 @@ def test_kitty() -> None:
if is_macos:
run('ulimit -c unlimited')
run('sudo chmod -R 777 /cores')
if running_under_sanitizer:
os.environ['MallocNanoZone'] = '0'
run('./test.py', print_crash_reports=True)