This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ronaldoussoren
Recipients ned.deily, ronaldoussoren
Date 2020-11-08.17:17:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
So close...

the problem we're running into is that "-isysroot" is only added for universal builds, not for regular builds. Furthermore unixccompiler doesn't know that is should always look in the SDK and not in the regular location (for system locations). 

I guess we should switch to:
- Never add -isysroot to CFLAGS (change to configure)
- Teach _osx_support about locating the default sdk root, both for Xcode and "command line tools" (_osx_support.default_sdk_root())
- Use that new function in and unixccompiler.

The first item might affect older systems where Xcode shipped with 2 SDKs (current and previous OS version). 

Is that something we can back port to 3.8 and 3.9? 

A less clean, but smaller, change is to teach the configure script to always add -isysroot on macOS, not just when doing a universal build.
Date User Action Args
2020-11-08 17:17:53ronaldoussorensetrecipients: + ronaldoussoren, ned.deily
2020-11-08 17:17:53ronaldoussorensetmessageid: <>
2020-11-08 17:17:53ronaldoussorenlinkissue41116 messages
2020-11-08 17:17:53ronaldoussorencreate