From 6d5c13f4f5f6ceb76e46d6e6f9b05b92d984e9bf Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sun, 2 Jun 2024 09:05:22 +0300 Subject: [PATCH] fix parallel build switch for windows `-m:` vs `/MP` --- build_win_premake.bat | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build_win_premake.bat b/build_win_premake.bat index 8f5623d2..214f93fd 100644 --- a/build_win_premake.bat +++ b/build_win_premake.bat @@ -75,25 +75,25 @@ if not exist "%sln_file%" ( :: -v:n make it so we can actually see what commands it runs echo: & echo building debug x64 -call "%my_vs_path%" /nologo "%sln_file%" /p:Configuration=debug /p:Platform=x64 -v:n /MP%build_threads% +call "%my_vs_path%" /nologo "%sln_file%" /p:Configuration=debug /p:Platform=x64 -v:n -m:%build_threads% if %errorlevel% neq 0 ( goto :end_script_with_err ) echo: & echo building debug x32 -call "%my_vs_path%" /nologo "%sln_file%" /p:Configuration=debug /p:Platform=Win32 -v:n /MP%build_threads% +call "%my_vs_path%" /nologo "%sln_file%" /p:Configuration=debug /p:Platform=Win32 -v:n -m:%build_threads% if %errorlevel% neq 0 ( goto :end_script_with_err ) echo: & echo building release x64 -call "%my_vs_path%" /nologo "%sln_file%" /p:Configuration=release /p:Platform=x64 -v:n /MP%build_threads% +call "%my_vs_path%" /nologo "%sln_file%" /p:Configuration=release /p:Platform=x64 -v:n -m:%build_threads% if %errorlevel% neq 0 ( goto :end_script_with_err ) echo: & echo building release x32 -call "%my_vs_path%" /nologo "%sln_file%" /p:Configuration=release /p:Platform=Win32 -v:n /MP%build_threads% +call "%my_vs_path%" /nologo "%sln_file%" /p:Configuration=release /p:Platform=Win32 -v:n -m:%build_threads% if %errorlevel% neq 0 ( goto :end_script_with_err )