From 7134e2bb5e85ccc43fc14b214c196dd982ddcf61 Mon Sep 17 00:00:00 2001 From: Eric Mehl Date: Fri, 2 Feb 2024 10:40:01 -0500 Subject: [PATCH] Build : Set `MSVC_VERSION` SCons will use the latest installed MSVC version by default. We are currently using MSVC 2019 (or for this purpose, toolset 14.2, see https://devblogs.microsoft.com/oldnewthing/20221219-00/?p=107601 for a valiant attempt at explaining MSVC version numbering) so building with a newer compiler installed will fail with "unexpected compiler version" errors. This mismatch will go away when we update to MSVC 2022, but will almost certainly come up again, so it's worth codifying the version we use. --- SConstruct | 1 + 1 file changed, 1 insertion(+) diff --git a/SConstruct b/SConstruct index 755146b23c..0733da0ed0 100644 --- a/SConstruct +++ b/SConstruct @@ -967,6 +967,7 @@ o.Add( ########################################################################################### env = Environment( + MSVC_VERSION = "14.2", options = o )