Skip to content

Conversation

@wolfgarbe
Copy link
Contributor

Installing searcharray in Visual Studio Code on MS Windows fails because the MSVC compiler does not support the following GCC/Clang-specific compiler intrinsics: __builtin_popcountll, __builtin_ctzll, __builtin_clzll

The pull request solves the issue by conditionally replacing __builtin_popcountll, __builtin_ctzll, __builtin_clzll with MSVC equivalents in popcount.pyx, roaringish_ops.pyx and spans.pyx

It has been tested both on MS Windows 11 and WSL:Ubuntu-24.04

…ws/MSVC

Installing searcharray in Visual Studio Code on MS Windows fails because the MSVC compiler does not support the following GCC/Clang-specific compiler intrinsics: __builtin_popcountll, __builtin_ctzll, __builtin_clzll
The issue can be solved by either installing GCC/Clang or by conditionally replacing __builtin_popcountll, __builtin_ctzll, __builtin_clzll with MSVC equivalents in popcount.pyx, roaringish_ops.pyx and spans.pyx
@softwaredoug
Copy link
Owner

Nice! This is awesome. Thanks @wolfgarbe

@softwaredoug
Copy link
Owner

Tested your PR on OSX and all tests pass 👍🏻

@softwaredoug softwaredoug merged commit b2cea10 into softwaredoug:main Apr 20, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants