Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI (MSVC): Update build rules for MSVC 19.40 #826

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

mmuetzel
Copy link
Contributor

@mmuetzel mmuetzel commented Jun 5, 2024

GitHub seems to be updating their runner images to include MSVC 19.40 currently.

NVIDIA CUDA seems to think this newer version of MSVC is no longer Microsoft Visual Studio 2022 (but it is).
Work around that issue by adding -allow-unsupported-compiler to the CUDA flags.

Additionally, it looks like the PATH variable on these runner images is arranged such that a different (older) clang-cl is being picked up by CMake instead of the newer one from MSVC 19.40.
Work around that by moving that version out of the PATH so CMake picks the compiler that is installed with Microsoft Visual Studio.
See also actions/runner-images#10001.

@mmuetzel
Copy link
Contributor Author

mmuetzel commented Jun 5, 2024

Now the MSYS2 mirrors are timing out... What's going on today?

I'll try to force push later to see if it will work then.

GitHub seems to be updating their runner images to include MSVC 19.40
currently.

NVIDIA CUDA seems to think this newer version of MSVC is no longer
Microsoft Visual Studio 2022 (but it is).
Work around that issue by adding `-allow-unsupported-compiler` to the
CUDA flags.

Additionally, it looks like the PATH variable on these runner images is
arranged such that a different (older) `clang-cl` is being picked up
by CMake instead of the newer one from MSVC 19.40.
Work around that by moving that version out of the PATH so CMake picks
the compiler that is installed with Microsoft Visual Studio.
@mmuetzel
Copy link
Contributor Author

mmuetzel commented Jun 6, 2024

Looks like the CI is green again with this change.

@DrTimothyAldenDavis DrTimothyAldenDavis merged commit 5ec900d into DrTimothyAldenDavis:dev2 Jun 6, 2024
26 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