-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
ENH: Introduce numpy.core.setup_common.NPY_CXX_FLAGS #21306
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
ENH: Introduce numpy.core.setup_common.NPY_CXX_FLAGS #21306
Conversation
9fde2ec
to
9e583c2
Compare
9e583c2
to
0c8b62b
Compare
'-D__STDC_VERSION__=0', # for compatibility with C headers | ||
'-fno-exceptions', # no exception support | ||
'-fno-rtti'] # no runtime type information | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should document these flags in numpy/doc/source/user/building.rst as "the set of c++ features we support", xref #21299
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that would make sense.
Group all C++ flags in one location. This avoids redundancy and makes sure we test the flags we use, and use the flags we test. Fix numpy#21302
0c8b62b
to
c91a7d0
Compare
Thanks @serge-sans-paille |
@charris did you plan on backporting this to 1.22.4? That seems like a good idea, given that it's broken in 1.22.3 |
I will now :) |
Group all C++ flags in one location.
This avoids redundancy and makes sure we test the flags we use, and use the
flags we test.
Fix #21302