Makefile: Suppress which error output

On Linux, there's no stderr output, but on Windows, there is.
This commit is contained in:
Martin Kinkelin 2023-12-12 02:43:01 +01:00 committed by Nicholas Wilson
parent 254de93ac8
commit 04e236923a

View file

@ -12,11 +12,11 @@ ifeq (,$(HOST_DMD))
HOST_DMD:=$(HOST_DC)
else ifneq (,$(DMD))
HOST_DMD:=$(DMD)
else ifneq (,$(shell which dmd))
else ifneq (,$(shell which dmd 2>/dev/null))
HOST_DMD:=dmd$(EXE)
else ifneq (,$(shell which ldmd2))
else ifneq (,$(shell which ldmd2 2>/dev/null))
HOST_DMD:=ldmd2$(EXE)
else ifneq (,$(shell which gdmd))
else ifneq (,$(shell which gdmd 2>/dev/null))
HOST_DMD:=gdmd$(EXE)
else
$(error Couldn't find a D host compiler. Please set variable HOST_DMD to the path to a dmd/ldmd2/gdmd executable)