Skip to content

Commit c757a89

Browse files
committed
Switch to VS2026 - Build server has also been updated to Visual Studio 2026 18.0.1 (11217.181) with v145, so nightly builds from now on will use the new toolchain.
This means we will have to watch for UB and compiler optimization bugs for a while, as with every major upgrade.
1 parent 483b0ce commit c757a89

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ Our project's code repository can be found on the [multitheftauto/mtasa-blue](ht
3535
#### Windows
3636

3737
Prerequisites
38-
- [Visual Studio 2022](https://visualstudio.microsoft.com/vs/) with:
38+
- [Visual Studio 2026](https://visualstudio.microsoft.com/vs/) with:
3939
- Desktop development with C++
40-
- Optional component *C++ MFC for latest v143 build tools (x86 & x64)*
40+
- Optional component *C++ MFC for latest v145 build tools (x86 & x64)*
4141
- [Microsoft DirectX SDK](https://wiki.multitheftauto.com/wiki/Compiling_MTASA#Microsoft_DirectX_SDK)
4242
- [Git for Windows](https://git-scm.com/download/win) (Optional)
4343

premake5.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ workspace "MTASA"
111111
symbolspath "$(SolutionDir)Symbols\\$(Configuration)_$(Platform)\\$(ProjectName).pdb"
112112

113113
filter "system:windows"
114-
toolset "v143"
114+
toolset "v145"
115115
preferredtoolarchitecture "x86_64"
116116
staticruntime "On"
117117
defines { "WIN32", "_WIN32", "_WIN32_WINNT=0x601", "_MSC_PLATFORM_TOOLSET=$(PlatformToolsetVersion)" }

utils/premake5.exe

33 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@echo off
2-
..\..\premake5.exe vs2022
2+
..\..\premake5.exe vs2026
33
if %0 == "%~0" pause
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@echo off
2-
..\..\premake5.exe vs2022
2+
..\..\premake5.exe vs2026
33
if %0 == "%~0" pause

win-build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ for /f "usebackq tokens=1* delims=: " %%i in (`%VSWHERE% -latest -requires Micro
1515
rem Output an error if not exists
1616
set MSBUILDPATH="%InstallDir%\MSBuild\Current\Bin\MSBuild.exe"
1717
if not exist %MSBUILDPATH% (
18-
echo Could not find MSBuild. Make sure you have Visual Studio 2022 installed
18+
echo Could not find MSBuild. Make sure you have Visual Studio 2026 installed
1919
goto end
2020
)
2121
echo Found MSBuild at: %MSBUILDPATH%

win-create-projects.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ rem Update discord-rpc
1010
utils\premake5.exe install_discord
1111

1212
rem Generate solutions
13-
utils\premake5.exe vs2022
13+
utils\premake5.exe vs2026
1414

1515
rem Create a shortcut to the solution - https://superuser.com/questions/392061/how-to-make-a-shortcut-from-cmd
1616
set SCRIPTFILE="%TEMP%\CreateMyShortcut.vbs"

0 commit comments

Comments
 (0)