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

(cherry picked from commit 76db37b1d3)

Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
This commit is contained in:
Victor Stinner 2020-04-09 17:32:21 +02:00 committed by GitHub
parent c83f003ee5
commit cd8e1da3ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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