From 148b33cf72033eced8a701d127e21dfe8a816ce3 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Tue, 25 Jan 2022 17:35:24 +0200 Subject: [PATCH] build: Replace `which` command with `command -v` This change made in a way that is compatible with GNU Make versions older than 4.3. --- depends/hosts/mingw32.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depends/hosts/mingw32.mk b/depends/hosts/mingw32.mk index 92fd1b81bf..2f370d2b87 100644 --- a/depends/hosts/mingw32.mk +++ b/depends/hosts/mingw32.mk @@ -1,4 +1,4 @@ -ifneq ($(shell which $(host)-g++-posix),) +ifneq ($(shell $(SHELL) $(.SHELLFLAGS) "command -v $(host)-g++-posix"),) mingw32_CXX := $(host)-g++-posix endif