Skip to content

BUG: Add cpp atomic support#28234

Merged
charris merged 2 commits intonumpy:mainfrom
ngoldbaum:add-cpp-atomic-support
Jan 27, 2025
Merged

BUG: Add cpp atomic support#28234
charris merged 2 commits intonumpy:mainfrom
ngoldbaum:add-cpp-atomic-support

Conversation

@ngoldbaum
Copy link
Copy Markdown
Member

Fixes #28106

This builds and passes the test on my Mac but let's see what the full CI says.

The code I'm adding is cribbed from CPython's pyatomic.h and pyatomic_std.h.

@charris
Copy link
Copy Markdown
Member

charris commented Jan 27, 2025

Should we backport this?

@ngoldbaum ngoldbaum added the 09 - Backport-Candidate PRs tagged should be backported label Jan 27, 2025
@matthew-brett
Copy link
Copy Markdown
Contributor

matthew-brett commented Jan 27, 2025

Nice - thanks! - with the fix at #28235, this allows the Numpy build to work without failure on WoA, with clang-cl.

@ngoldbaum
Copy link
Copy Markdown
Member Author

ngoldbaum commented Jan 27, 2025

I think this should be safe to backport.

@charris charris merged commit 32a6b53 into numpy:main Jan 27, 2025
@charris
Copy link
Copy Markdown
Member

charris commented Jan 27, 2025

Thanks Nathan.

charris pushed a commit to charris/numpy that referenced this pull request Jan 27, 2025
* BUG: add C++ support to npy_atomic.h

* MAINT: delete outdated comment
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Jan 27, 2025
charris added a commit that referenced this pull request Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building NumPy from source for Windows on ARM using Clang-cl compiler

3 participants