Commit 1364fe62 authored by Andreas Klebinger's avatar Andreas Klebinger Committed by Tamar Christina

Recognize shells reporting as MINGW under windows.

My msys instance at least reports MINGW instead of MSYS for uname.
This commit adjusts the regex to match either one.

Without this some errors occur because of missing .exe extensions in
file names.

This fixes #14654

Test Plan: make

Reviewers: O26 nofib, Phyx, bgamari

Reviewed By: Phyx, bgamari

Subscribers: bgamari, Phyx

GHC Trac Issues: #14654

Differential Revision:
parent 40748b30
......@@ -23,7 +23,7 @@ CONTEXT_DIFF_RAW = diff -U 1
# Windows MSYS specific settings
ifeq ($(shell uname -s | grep -c MSYS), 1)
ifeq ($(shell uname -s | grep -c 'MSYS\|MINGW'), 1)
CONTEXT_DIFF=$(CONTEXT_DIFF_RAW) --strip-trailing-cr
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment