Use nmake instead of make on Windows

Qmake in generating Makefile for nmake on Windows/msvc.
This commit is contained in:
Matthieu Gautier 2024-08-21 17:16:29 +02:00
parent 7fbeb2fc6d
commit 1e4b88d2f0
1 changed files with 4 additions and 1 deletions

View File

@ -30,7 +30,10 @@ class NeutralEnv:
self.mesontest_command = [*self.meson_command, "test"] self.mesontest_command = [*self.meson_command, "test"]
self.patch_command = self._detect_command("patch") self.patch_command = self._detect_command("patch")
self.git_command = self._detect_command("git") 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.cmake_command = self._detect_command("cmake")
self.qmake_command = self._detect_command( self.qmake_command = self._detect_command(
"qmake", required=False, default=[["qmake"], ["qmake-qt5"]] "qmake", required=False, default=[["qmake"], ["qmake-qt5"]]