This repository has been archived by the owner on Oct 12, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Issue 11414 - druntime should run debug unittest
- change druntime's makefile structure to match phobos - define ROOT folder as generated/$(OS)/$(BUILD)/$(MODEL) - unittest rule recursively invokes debug/release unittest - factor out common.mak from test/*/Makefile and test debug/release
- Loading branch information
1 parent
e64b999
commit 5c69814
Showing
6 changed files
with
105 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# set from top makefile | ||
OS:= | ||
MODEL:= | ||
BUILD:= | ||
DMD:= | ||
DRUNTIME:= | ||
DRUNTIMESO:= | ||
QUIET:= | ||
LINKDL:= | ||
LDL:=$(subst -L,,$(LINKDL)) # -ldl | ||
|
||
SRC:=src | ||
ROOT:=./generated/$(OS)/$(BUILD)/$(MODEL) | ||
|
||
ifneq (default,$(MODEL)) | ||
MODEL_FLAG:=-m$(MODEL) | ||
endif | ||
CFLAGS:=$(MODEL_FLAG) -Wall | ||
DFLAGS:=$(MODEL_FLAG) -w -I../../src -I../../import -I$(SRC) -defaultlib= -debuglib= | ||
# LINK_SHARED may be set by importing makefile | ||
DFLAGS+=$(if $(LINK_SHARED),-L$(DRUNTIMESO),-L$(DRUNTIME)) | ||
ifeq ($(BUILD),debug) | ||
DFLAGS += -g -debug | ||
CFLAGS += -g | ||
else | ||
DFLAGS += -O -release | ||
CFLAGS += -O3 | ||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters