Author ronaldoussoren
Recipients ned.deily, ronaldoussoren
Date 2020-11-08.17:17:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1604855873.87.0.260897441329.issue41116@roundup.psfhosted.org>
In-reply-to
Content
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 setup.py 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.
History
Date User Action Args
2020-11-08 17:17:53ronaldoussorensetrecipients: + ronaldoussoren, ned.deily
2020-11-08 17:17:53ronaldoussorensetmessageid: <1604855873.87.0.260897441329.issue41116@roundup.psfhosted.org>
2020-11-08 17:17:53ronaldoussorenlinkissue41116 messages
2020-11-08 17:17:53ronaldoussorencreate