]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
build: enable parallel builds in msbuild using MTT (#17708)
authorJeff Bolz <redacted>
Thu, 4 Dec 2025 04:42:29 +0000 (22:42 -0600)
committerGitHub <redacted>
Thu, 4 Dec 2025 04:42:29 +0000 (22:42 -0600)
* build: enable parallel builds in msbuild using MTT

* check LLAMA_STANDALONE

CMakeLists.txt

index 1085b545a96e605617a2e356d33dde0ea595fe51..11c9b878e79f1de2e450a1e838305b295bafe774 100644 (file)
@@ -72,6 +72,12 @@ if (MSVC)
     add_compile_options("$<$<COMPILE_LANGUAGE:CXX>:/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()