Skip to content

SPIR wrapper: also match the unnormalized mingw32 triple - #6

Open
maleadt wants to merge 1 commit into
mainfrom
tb/mingw32-triple
Open

maleadt wants to merge 1 commit into
mainfrom
tb/mingw32-triple

Conversation

@maleadt

@maleadt maleadt commented Oct 26, 2026

Copy link
Copy Markdown
Member

pocl#2381 passes the SPIR wrapper generator --mingw when LLC_TRIPLE matches -windows-gnu, LLVM's normalized spelling. Builds that set LLC_TRIPLE to the unnormalized x86_64-w64-mingw32, as the JuliaGPU PoCL JLLs do, didn't get the flag, so the wrappers passed vectors indirectly while the kernel library takes them directly. This also matches -mingw32.

Carried by the JuliaGPU PoCL JLLs (Yggdrasil P/pocl/pocl_next 0020). It's a one-line fix that could go upstream if they want it.

Builds that set LLC_TRIPLE to the unnormalized x86_64-w64-mingw32 rather
than LLVM's normalized x86_64-w64-windows-gnu missed the --mingw wrapper
flag, leaving vector arguments of the SPIR wrappers mismatched.
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.

1 participant