RosBE/Patches/ninja-v1.9.0-Fix-MinGW-bootstrap-build.patch

27 lines
815 B
Diff

From 9c01db51388679713a0c7b98f2ea7d2d7a302908 Mon Sep 17 00:00:00 2001
From: Colin Finck <colin@reactos.org>
Date: Sun, 18 Aug 2019 11:59:57 +0200
Subject: [PATCH] Fix MinGW bootstrap build.
I have taken this fix from https://github.com/ninja-build/ninja/blob/d849e8fc856adf1e11cb5100cdf38afb72c09a02/appveyor.yml#L19
---
configure.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.py b/configure.py
index 78cd1de..c26f06f 100755
--- a/configure.py
+++ b/configure.py
@@ -432,7 +432,7 @@ if host.is_msvc():
description='LIB $out')
elif host.is_mingw():
n.rule('ar',
- command='cmd /c $ar cqs $out.tmp $in && move /Y $out.tmp $out',
+ command='$ar crs $out $in',
description='AR $out')
else:
n.rule('ar',
--
2.17.1.windows.2