mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
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>
This commit is contained in:
parent
3a69f3caee
commit
b310700976
5 changed files with 79 additions and 16 deletions
2
setup.py
2
setup.py
|
@ -170,7 +170,7 @@ def macosx_sdk_root():
|
|||
return MACOS_SDK_ROOT
|
||||
|
||||
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 not None:
|
||||
MACOS_SDK_ROOT = m.group(1)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue