From: Jeff Bolz Date: Thu, 4 Dec 2025 04:42:29 +0000 (-0600) Subject: build: enable parallel builds in msbuild using MTT (#17708) X-Git-Tag: upstream/0.0.7446~184 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=d8b5cdc4fecd6d65a727cf9f6d6b4f4c5bdf1296;p=pkg%2Fggml%2Fsources%2Fllama.cpp build: enable parallel builds in msbuild using MTT (#17708) * build: enable parallel builds in msbuild using MTT * check LLAMA_STANDALONE --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1085b545..11c9b878 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,6 +72,12 @@ if (MSVC) add_compile_options("$<$:/bigobj>") endif() +if (LLAMA_STANDALONE) + # enable parallel builds for msbuild + list(APPEND CMAKE_VS_GLOBALS UseMultiToolTask=true) + list(APPEND CMAKE_VS_GLOBALS EnforceProcessCountAcrossBuilds=true) +endif() + if (CMAKE_SYSTEM_NAME STREQUAL "iOS") set(LLAMA_TOOLS_INSTALL_DEFAULT OFF) else()