Skip to content

Commit 99883ac

Browse files
committed
[druntime: Clarify that DFLAGS_BASE in common.mak are an LDC extension]
1 parent cd9f493 commit 99883ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

runtime/druntime/test/common.mak

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ ifeq (,$(findstring ldmd2,$(DMD)))
3737
CFLAGS_BASE+=--target=x86_64-darwin-apple # ARM cpu is not supported by dmd
3838
endif
3939
endif
40-
# LDC: include optional DFLAGS_BASE and use `-defaultlib=druntime-ldc [-link-defaultlib-shared]` instead of `-defaultlib= -L$(DRUNTIME[_IMPLIB])`
41-
DFLAGS:=$(MODEL_FLAG) $(PIC) $(DFLAGS_BASE) -w -I../../src -I../../import -I$(SRC) -defaultlib=$(if $(findstring ldmd2,$(DMD)),druntime-ldc,) -preview=dip1000 $(if $(findstring $(OS),windows),,-L-lpthread -L-lm $(LINKDL))
40+
# LDC:
41+
# * include optional DFLAGS_BASE
42+
# * use `-defaultlib=druntime-ldc [-link-defaultlib-shared]` instead of `-defaultlib= -L$(DRUNTIME[_IMPLIB])`
43+
DFLAGS:=$(MODEL_FLAG) $(PIC) $(if $(findstring ldmd2,$(DMD)),$(DFLAGS_BASE),) -w -I../../src -I../../import -I$(SRC) -defaultlib=$(if $(findstring ldmd2,$(DMD)),druntime-ldc,) -preview=dip1000 $(if $(findstring $(OS),windows),,-L-lpthread -L-lm $(LINKDL))
4244
# LINK_SHARED may be set by importing makefile
4345
ifeq (,$(findstring ldmd2,$(DMD)))
4446
DFLAGS+=$(if $(LINK_SHARED),-L$(DRUNTIME_IMPLIB) $(if $(findstring $(OS),windows),-dllimport=all),-L$(DRUNTIME))

0 commit comments

Comments
 (0)