From f0c118e6faa87183e57d4150f3aa72223bfae36c Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Thu, 14 May 2026 16:23:50 +0200 Subject: [PATCH] =?UTF-8?q?est=C3=A9n=20la=20detecci=C3=B3=20de=20Ninja=20?= =?UTF-8?q?a=20Linux/macOS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c11c0a3..e5df22a 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,14 @@ ifeq ($(OS),Windows_NT) else NULDEV := /dev/null JOBS ?= $(shell nproc 2>/dev/null || echo 4) - CMAKE_GEN := + # Si Ninja està al PATH, l'usem (més ràpid i paral·lelitza millor). + # Si no, deixem que CMake usi el generador per defecte (Unix Makefiles). + HAS_NINJA := $(shell ninja --version 2>/dev/null) + ifneq ($(HAS_NINJA),) + CMAKE_GEN := -G "Ninja" + else + CMAKE_GEN := + endif endif # VERSION (única font de veritat: source/utils/defines.hpp).