-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CXXFLAGS overrides default flags, CFLAGS doesn't #299
Comments
Update the docs to reflect the distutils change for pypa/distutils#299 in af7fcbb. Closes: pypa#4836
Update the docs to reflect the distutils change for pypa/distutils#299 in af7fcbb. Closes: pypa#4836
@thesamesam @jaraco I encountered a weird regression which I think is due to this change, and wondered where it ought to be fixed. The regression is visible in https://bugs.debian.org/1098602, though it's quite confusing. From what I can tell, if Python is built with
Previously extensions were built with Python's own I don't know Python's C API well enough to determine whether this is a bug in |
Thanks @cjwatson. Let me take a look. |
On second thoughts, based on pypa/setuptools#4836, I think this is just a bug in |
Many thanks! That looks right to me and that the assertions were broken (and clearly haven't worked for at least some time). |
distutils/distutils/sysconfig.py
Lines 343 to 345 in 378984e
distutils now uses CXXFLAGS instead of CFLAGS for C++, that's good. However, it was implemented differently: while CFLAGS is appended to the default flags, CXXFLAGS replaces them. Is there a particular reason for this inconsistency? I have an application where I was setting both CFLAGS and CXXFLAGS to the same value, and was quite confused when the behavior changed with the new setuptools.
The text was updated successfully, but these errors were encountered: