diff options
| author | Joshua Root <jmr@macports.org> | 2020-04-22 17:44:10 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-22 03:44:10 -0400 |
| commit | 74e9f56dc7857cee680727406517c2c086511e12 (patch) | |
| tree | 951f329c4e77b46820facd2fe185c572ada54642 | |
| parent | c3ae6d416043ca528e9cf88c4789afa9df223c5b (diff) | |
| download | python-setuptools-git-74e9f56dc7857cee680727406517c2c086511e12.tar.gz | |
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>
| -rw-r--r-- | unixccompiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unixccompiler.py b/unixccompiler.py index d10a78da..4d7a6de7 100644 --- a/unixccompiler.py +++ b/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: |
