Skip to content
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

Open
mglisse opened this issue Sep 21, 2024 · 0 comments
Open

CXXFLAGS overrides default flags, CFLAGS doesn't #299

mglisse opened this issue Sep 21, 2024 · 0 comments

Comments

@mglisse
Copy link

mglisse commented Sep 21, 2024

cflags = _add_flags(cflags, 'C')
ldshared = _add_flags(ldshared, 'C')
cxxflags = os.environ.get('CXXFLAGS', cxxflags)

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant