Commit 22de4ce4 authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

bpo-36235: Fix distutils test_customize_compiler() on macOS (GH-12751)

Set CUSTOMIZED_OSX_COMPILER to True to disable
_osx_support.customize_compiler().
parent 9c14061a
......@@ -73,6 +73,9 @@ class SysconfigTestCase(support.EnvironGuard,
comp = compiler()
old_vars = dict(sysconfig._config_vars)
try:
# On macOS, disable _osx_support.customize_compiler()
sysconfig._config_vars['CUSTOMIZED_OSX_COMPILER'] = 'True'
for key, value in sysconfig_vars.items():
sysconfig._config_vars[key] = value
sysconfig.customize_compiler(comp)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment