estén la detecció de Ninja a Linux/macOS

This commit is contained in:
JailDesigner committed 2026-05-14 16:23:50 +02:00
1 parent bc5a6abf53
commit f0c118e6fa
1 file changed
+8 -1
+8 -1
View File
@@ -27,7 +27,14 @@ ifeq ($(OS),Windows_NT)
else else
NULDEV := /dev/null NULDEV := /dev/null
JOBS ?= $(shell nproc 2>/dev/null || echo 4) 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 endif
# VERSION (única font de veritat: source/utils/defines.hpp). # VERSION (única font de veritat: source/utils/defines.hpp).