Skip to content

Commit b9510f2

Browse files
committed
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 <a.horodniceanu@proton.me>
1 parent b7bcc8a commit b9510f2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ override DMD_TEST_FLAGS += -w
6666

6767
DC_DEBUG_FLAGS := -g -Jbin
6868

69-
ifeq ($(DC), $(filter $(DC), dmd ldmd2 gdmd))
69+
ifneq (,$(findstring dmd, $(DC)))
7070
VERSIONS := $(DMD_VERSIONS)
7171
DEBUG_VERSIONS := $(DMD_DEBUG_VERSIONS)
7272
DC_FLAGS += $(DMD_FLAGS)

0 commit comments

Comments
 (0)