KhronosGroup / OpenCL-ICD-Loader

The OpenCL ICD Loader project.
Apache License 2.0
246 stars 136 forks source link

Explicitly mark compareLayer as __cdecl #231

Closed jenatali closed 9 months ago

jenatali commented 9 months ago

There's command-line switches which can change the default calling convention for unannotated functions. Visual Studio defaults to /Gd which is __cdecl, but Windows defaults to /Gz which is __stdcall. That causes an x86 build break, since qsort requires the input parameter to be __cdecl. Just add the explicit annotation so it works regardless of the default.

jenatali commented 9 months ago

Looks like the CI run hit an infrastructure issue (timeout retrieving GPG key). I don't see an option to re-run it but I'm not super familiar with the GitHub actions UI. Might just be a permission issue though.

Kerilk commented 9 months ago

Launched a rerun of the failed jobs.

Kerilk commented 9 months ago

@bashbaug @MathiasMagnus Do we want to add the above configuration to the CI? Or merge this as is and try to remember about this?

MathiasMagnus commented 9 months ago

This seems like a good change. We should probably test both calling conventions, but I'd defer it via an issue of its own.

bashbaug commented 9 months ago

I added an issue to track adding this case to CI, so we don't lose track of it. Let's just merge this now.