Skip to content

Commit a333fa3

Browse files
Fix the ASAN job.
1 parent 097fc40 commit a333fa3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Lib/test/test_embed.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import shutil
1313
import subprocess
1414
import sys
15+
import sysconfig
1516
import tempfile
1617
import textwrap
1718

@@ -432,6 +433,10 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
432433
CONFIG_COMPAT.update({
433434
'legacy_windows_stdio': 0,
434435
})
436+
else:
437+
config_args = sysconfig.get_config_var('CONFIG_ARGS') or ''
438+
if '--with-address-sanitizer' in config_args:
439+
CONFIG_COMPAT['use_frozen_modules'] = True
435440

436441
CONFIG_PYTHON = dict(CONFIG_COMPAT,
437442
_config_init=API_PYTHON,

0 commit comments

Comments
 (0)