Skip to content

Commit 7134e2b

Browse files
committed
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.
1 parent 1ffe66c commit 7134e2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SConstruct

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,7 @@ o.Add(
967967
###########################################################################################
968968

969969
env = Environment(
970+
MSVC_VERSION = "14.2",
970971
options = o
971972
)
972973

0 commit comments

Comments
 (0)