build: Replace which command with command -v

This change made in a way that is compatible with GNU Make versions
older than 4.3.
This commit is contained in:
Hennadii Stepanov committed 2022-01-31 22:30:00 +00:00
1 parent 8f137e69ca
commit 148b33cf72
1 file changed
+1 -1
+1 -1
View File
@@ -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