From 1e4b88d2f0f9d74343cc7e9cabadbb3d15395850 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 21 Aug 2024 17:16:29 +0200 Subject: [PATCH] Use nmake instead of make on Windows Qmake in generating Makefile for nmake on Windows/msvc. --- kiwixbuild/buildenv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kiwixbuild/buildenv.py b/kiwixbuild/buildenv.py index cdd65b9..2ae6ac2 100644 --- a/kiwixbuild/buildenv.py +++ b/kiwixbuild/buildenv.py @@ -30,7 +30,10 @@ class NeutralEnv: self.mesontest_command = [*self.meson_command, "test"] self.patch_command = self._detect_command("patch") self.git_command = self._detect_command("git") - self.make_command = self._detect_command("make") + if platform.system() == "Windows": + self.make_command = self._detect_command("nmake", options=["/?", "/NOLOGO"]) + else: + self.make_command = self._detect_command("make") self.cmake_command = self._detect_command("cmake") self.qmake_command = self._detect_command( "qmake", required=False, default=[["qmake"], ["qmake-qt5"]]