fix build error in msvc

This commit is contained in:
2026-07-23 10:50:28 -04:00
parent aea562ae18
commit 973f529741
7 changed files with 110 additions and 4 deletions
+9 -1
View File
@@ -142,8 +142,11 @@ Compiler( 'Compiler-VS2022-ARM64' )
+ ' /diagnostics:caret' // Use improved warning/error messages
+ .CPPVersion
+ ' /permissive-' // Require conformant code
+ ' /Gm-' // No RTTI
+ ' /GR-' // No RTTI
+ ' /EHs-c-' // No exceptions
+ ' /EHa-' // No exceptions
+ ' /Oi' // Use assembly intrinsics where possible
+ ' /Gy' // Function level linking
+ ' -D_CRT_SECURE_NO_WARNINGS'
@@ -170,6 +173,9 @@ Compiler( 'Compiler-VS2022-ARM64' )
+ ' /wd5045' // Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified
+ ' /wd5220' // '%s': a non-static data member with a volatile qualified type no longer implies that compiler generated copy/move constructors and copy/move assignment operators are not trivial
+ ' /wd5245' // 'function': unreferenced function with internal linkage has been removed
+ ' /wd4626' // assignment operator was implicitly defined as deleted
+ ' /wd5026' // move constructor was implicitly defined as deleted
+ ' /wd5027' // move assignment operator was implicitly defined as deleted
// Include Paths
+ ' /I"./"'
@@ -182,9 +188,11 @@ Compiler( 'Compiler-VS2022-ARM64' )
// Librarian
.LibrarianOptions = '/NODEFAULTLIB /WX /NOLOGO /OUT:"%2" "%1"'
+ ' /OPT:REF'
// Linker
.LinkerOptions = '/NODEFAULTLIB /WX /NOLOGO /INCREMENTAL:NO /OUT:"%2" "%1" /DEBUG'
+ ' /OPT:REF'
//CRT
.CRTLibs_Static = ' LIBCMT.LIB'