Skip to content

Make C++ extensions compile with correct compiler - #8389

Merged
sklam merged 2 commits into
numba:mainfrom
apmasell:cpp_typeconv
Sep 13, 2022
Merged

sklam merged 2 commits into
numba:mainfrom
apmasell:cpp_typeconv

Conversation

@apmasell

Copy link
Copy Markdown
Contributor

Some extension files are C++ but have .c extensions. GCC will compile these
as C++, but clang will not.

Some extension files are C++ but have `.c` extensions. GCC will compile these
as C++, but clang will not.

@stuartarchibald stuartarchibald left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch @apmasell. I've taken a look through the C/C++ code changes, specifically at things like type casts and the proposed changes seem valid on inspection.

Comment thread numba/_typeof.cpp Outdated
@stuartarchibald stuartarchibald added 4 - Waiting on second reviewer Patch needs a second reviewer. Effort - short Short size effort needed Effort - medium Medium size effort needed and removed 3 - Ready for Review labels Sep 13, 2022
gmarkall
gmarkall previously approved these changes Sep 13, 2022

@gmarkall gmarkall left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me - I'm approving it, though I note Stuart's suggestion about the formatting of the pointers on the diff.

@gmarkall gmarkall added 4 - Waiting on author Waiting for author to respond to review and removed 4 - Waiting on second reviewer Patch needs a second reviewer. labels Sep 13, 2022
As titled

Co-authored-by: stuartarchibald <stuartarchibald@users.noreply.github.com>
@apmasell

Copy link
Copy Markdown
Contributor Author

Accepted the suggestion. Might be worth extending the formatting from llvmlite to numba.

@stuartarchibald stuartarchibald added 5 - Ready to merge Review and testing done, is ready to merge and removed 4 - Waiting on author Waiting for author to respond to review Effort - short Short size effort needed labels Sep 13, 2022
@sklam
sklam merged commit 527a3f4 into numba:main Sep 13, 2022
@apmasell
apmasell deleted the cpp_typeconv branch September 14, 2022 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to merge Review and testing done, is ready to merge Effort - medium Medium size effort needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants