diff options
author | Joshua Root <jmr@macports.org> | 2020-04-22 07:44:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-22 07:44:10 (GMT) |
commit | b310700976524b4b99ee319c947ca40468716fc9 (patch) | |
tree | ee5ffee5d510dd540b0c5748424b3afecd53bda8 /Lib/distutils/unixccompiler.py | |
parent | 3a69f3caeeaea57048ed3bc3051e16854b9a4cd6 (diff) | |
download | cpython-b310700976524b4b99ee319c947ca40468716fc9.zip cpython-b310700976524b4b99ee319c947ca40468716fc9.tar.gz cpython-b310700976524b4b99ee319c947ca40468716fc9.tar.bz2 |
bpo-38360: macOS: support alternate form of -isysroot flag (GH-16480)
It is possible to use either '-isysroot /some/path' (with a space) or
'-isysroot/some/path' (no space in between). Support both forms in
places where special handling of -isysroot is done, rather than just
the first form.
Co-authored-by: Ned Deily <nad@python.org>
Diffstat (limited to 'Lib/distutils/unixccompiler.py')
-rw-r--r-- | Lib/distutils/unixccompiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index d10a78d..4d7a6de 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -288,7 +288,7 @@ class UnixCCompiler(CCompiler): # vs # /usr/lib/libedit.dylib cflags = sysconfig.get_config_var('CFLAGS') - m = re.search(r'-isysroot\s+(\S+)', cflags) + m = re.search(r'-isysroot\s*(\S+)', cflags) if m is None: sysroot = '/' else: |