You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
thesamesam
added a commit
to thesamesam/distutils
that referenced
this issue
Dec 22, 2024
Since 2c93711, CXXFLAGS is used
as-is if set in the envionment rather than clobbered by whatever
CPython happened to be built with.
Do the same for CFLAGS: use it as-is if set in the environment, don't
prepend CPython's saved flags.
Fixes: pypa#299
Since 2c93711, CXXFLAGS is used
as-is if set in the envionment rather than clobbered by whatever
CPython happened to be built with.
Do the same for CFLAGS: use it as-is if set in the environment, don't
prepend CPython's saved flags.
Fixes: pypa#299
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: