diff --git a/Makefile b/Makefile index d9066ba006..bb3b1c010c 100644 --- a/Makefile +++ b/Makefile @@ -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)