Skip to content

windows: fix msvc compatibility - #1182

Merged
dpwe merged 1 commit into
shorepine:mainfrom
mrkishi:push-ooxznknpvkrq
Sep 24, 2026
Merged

dpwe merged 1 commit into
shorepine:mainfrom
mrkishi:push-ooxznknpvkrq

Conversation

@mrkishi

@mrkishi mrkishi commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

On MSVC, the __attribute__((noinline)) is not available, so we need a little AMY helper to apply the correct attribute depending on the compiler.

On the other hand, while MSVC doesn't provide __builtin_clz, clang does (even on Windows), so we have to further gate the MSVC declaration.

With these, AMY compiles on Windows with either MSVC, clang and gcc.

@dpwe

dpwe commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Thanks!

@dpwe
dpwe merged commit 57e6d25 into shorepine:main Sep 24, 2026
12 checks passed
@bwhitman

Copy link
Copy Markdown
Collaborator

⛓️ tulipcc integration PR opened

This merge was pinned into tulipcc for full-system CI: shorepine/tulipcc#1371

Test it there and merge that PR to move tulipcc onto this AMY.

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.

3 participants