From 7a39b4aa203843fd2d2ddd86f56b2dad8e0cf2a5 Mon Sep 17 00:00:00 2001 From: GigabiteStudios Date: Fri, 19 Jun 2026 15:59:15 -0500 Subject: [PATCH] Optimize builds in CMakeLists.txt and run.bat --- CMakeLists.txt | 2 +- run.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8779ab2..b6b01cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,7 +90,7 @@ if(WIN32) endif() if(MSVC) - target_compile_options(gitree PRIVATE /W4 /permissive-) + target_compile_options(gitree PRIVATE /W4 /permissive- /MP) else() target_compile_options(gitree PRIVATE -Wall -Wextra -Wpedantic) endif() diff --git a/run.bat b/run.bat index 98a7349..02c9367 100644 --- a/run.bat +++ b/run.bat @@ -17,7 +17,7 @@ if %errorlevel%==0 ( if not exist build\CMakeCache.txt ( cmake -S . -B build %GENERATOR% -DCMAKE_BUILD_TYPE=Release || exit /b 1 ) -cmake --build build --config Release --parallel || exit /b 1 +cmake --build build --config Release --parallel %NUMBER_OF_PROCESSORS% || exit /b 1 if exist build\bin\gitree.exe ( start "" build\bin\gitree.exe %*