Commit c3ae6d41 authored by Michael Felt's avatar Michael Felt Committed by GitHub

bpo-40112: distutils test_search_cpp: Fix logic to determine if C compiler is xlc on AIX (GH-19225)

parent 6e7341b2
......@@ -47,8 +47,7 @@ class ConfigTestCase(support.LoggingSilencer,
cmd = config(dist)
cmd._check_compiler()
compiler = cmd.compiler
is_xlc = shutil.which(compiler.preprocessor[0]).startswith("/usr/vac")
if is_xlc:
if sys.platform[:3] == "aix" and "xlc" in compiler.preprocessor[0].lower():
self.skipTest('xlc: The -E option overrides the -P, -o, and -qsyntaxonly options')
# simple pattern searches
......
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