Skip to content

CDRIVER-5939 reintroduce VS 2015 task coverage #1991

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

Merged
merged 2 commits into from
Apr 11, 2025

Conversation

eramongodb
Copy link
Contributor

@eramongodb eramongodb commented Apr 10, 2025

Resolves CDRIVER-5939 following resolution of DEVPROD-16074. The providing distro is now windows-vsCurrent rather than the initially proposed windows64-vsMulti distro.

Updated compile-std.sh to take advantage of CMake 3.30's CMAKE_<LANG>_STANDARD_LATEST variable to sanity-check that the requested C standard version is supported by the requested compiler (according to CMake). This exposed VS 2015 does not support C17:

CMake Error at CMakeLists.txt:15 (message):
  Latest C standard 11 is less than 17

Additionally added a C compiler flag check to ensure the /std:clatest flag is actually supported by the compilers rather than an easily-missed warning during the build step:

cl : Command line warning D9002: ignoring unknown option '/std:clatest'

This revealed none of the current MSVC installations on Evergreen support the /std:clatest flag. This was verified via spawn host (however, they do support the /std:c++latest flag). It is unknown at the moment why the /std:clatest flag is missing or how to enable it (if possible). The tasks are therefore removed for now.

Note

C11 and C17 tasks for VS 2017 and newer are currently failing with the proposed changes due to DEVPROD-16743. The distro is currently missing a required Windows 10 SDK version which patches C11 and C17 compatibility in system headers.

@eramongodb eramongodb requested a review from kevinAlbs April 10, 2025 21:58
@eramongodb eramongodb self-assigned this Apr 10, 2025
@eramongodb eramongodb requested a review from kevinAlbs April 11, 2025 17:28
Copy link
Collaborator

@kevinAlbs kevinAlbs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the change. LGTM

@eramongodb eramongodb merged commit 74c039a into mongodb:master Apr 11, 2025
39 of 42 checks passed
@eramongodb eramongodb deleted the cdriver-5939 branch April 11, 2025 18:14
@eramongodb eramongodb changed the title CDRIVER-3253 reintroduce VS 2015 task coverage CDRIVER-5939 reintroduce VS 2015 task coverage Apr 11, 2025
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