_MSC_VER is 1940 with latest vs 2022 upate and its not letting me build llama.cpp

Hi,
after updating visual studio 2022, building llama.cpp fails, as I have, it seems, v11.6, v11.8, and v12.2 on my system, and somehow the *\include\crt\host_config.h contains the same condition:

#if _MSC_VER < 1910 || _MSC_VER >= 1940

#error – unsupported Microsoft Visual Studio version! Only the versions between 2017 and 2022 (inclusive) are supported! The nvcc flag ‘-allow-unsupported-compiler’ can be used to override this version check; however, using an unsupported host compiler may cause compilation failure or incorrect run time execution. Use at your own risk.

which i had to change to:
#if _MSC_VER < 1910 || _MSC_VER > 1940
in all 3 places. As _MSC_VER with the latest update of visual studio 2022 is now 1940.
After the change above to the header files, the build goes fine.

My question is, is there any update or patch that should be issued by nvidia, or, is there any other solution, or, as the error message says “nvcc flag ‘-allow-unsupported-compiler’” the only option?

thanks.

…ab