From 7a4970605e4bfba07052adc451d65371fcce527c Mon Sep 17 00:00:00 2001 From: Tobias Ahrens Date: Mon, 23 Oct 2023 11:30:45 +0200 Subject: [PATCH] Disable the use of ninja for windows builds Aperantly github added ninja to all of there runners now. This causes the windows build to fail. This is expected because we add the architecture as a compiler arg which is not known to ninja. Even with this the build fails. This commit disables ninja on windows for now. Once we fixed the underlying issue with ninja and windows we can reenable it. --- buildutils/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildutils/build.py b/buildutils/build.py index 0873914..e79bdf0 100644 --- a/buildutils/build.py +++ b/buildutils/build.py @@ -28,7 +28,7 @@ def build_libcapnp(bundle_dir, build_dir): # noqa: C901 # Enable ninja for compilation if available build_type = [] - if shutil.which("ninja"): + if shutil.which("ninja") and os.name != "nt": build_type = ["-G", "Ninja"] # Determine python shell architecture for Windows