From 11ef1e8416ccc1313e30d282f8631b9a5f3a1a86 Mon Sep 17 00:00:00 2001 From: Ayush Ojha Date: Sat, 31 Jan 2026 23:57:50 -0800 Subject: [PATCH] Enable parallel compilation in setup_env.py The cmake build command was missing the --parallel flag, forcing single-threaded compilation. This made builds unnecessarily slow, especially on low-end ARM devices where single-core I/O can cause the build to take hours. Adding --parallel lets cmake use all available CPU cores by default. Fixes #303 --- setup_env.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup_env.py b/setup_env.py index 3bf5fb8f7..5b6a48d1e 100644 --- a/setup_env.py +++ b/setup_env.py @@ -213,7 +213,7 @@ def compile(): logging.info("Compiling the code using CMake.") run_command(["cmake", "-B", "build", *COMPILER_EXTRA_ARGS[arch], *OS_EXTRA_ARGS.get(platform.system(), []), "-DCMAKE_C_COMPILER=clang", "-DCMAKE_CXX_COMPILER=clang++"], log_step="generate_build_files") # run_command(["cmake", "--build", "build", "--target", "llama-cli", "--config", "Release"]) - run_command(["cmake", "--build", "build", "--config", "Release"], log_step="compile") + run_command(["cmake", "--build", "build", "--config", "Release", "--parallel"], log_step="compile") def main(): setup_gguf()