From b9510f2f96d96e6db67d37ccc1e1eb5e84f964ed Mon Sep 17 00:00:00 2001 From: Andrei Horodniceanu Date: Sun, 6 Jul 2025 17:33:06 +0300 Subject: [PATCH] makefile: Support absolute paths for dmd With gdc and ldc2, DC=/usr/bin/ldc2 or other paths are correctly handled. With dmd, ldmd2, or gdmd, this is not the case because the makefile requires that DC must be exactly dmd, or ldmd2, or gdmd, absolute paths or versioned exes (dmd-2.111) not being supported. Signed-off-by: Andrei Horodniceanu --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 4d6dced..3eab028 100644 --- a/makefile +++ b/makefile @@ -66,7 +66,7 @@ override DMD_TEST_FLAGS += -w DC_DEBUG_FLAGS := -g -Jbin -ifeq ($(DC), $(filter $(DC), dmd ldmd2 gdmd)) +ifneq (,$(findstring dmd, $(DC))) VERSIONS := $(DMD_VERSIONS) DEBUG_VERSIONS := $(DMD_DEBUG_VERSIONS) DC_FLAGS += $(DMD_FLAGS)