Skip to content

Commit 333c99e

Browse files
authored
Merge pull request #1650 from wilzbach/ensure-phobos-stable
Ensure that the phobos-stable directory exists
2 parents 7e3b118 + 6e1bdb1 commit 333c99e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

posix.mak

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ PHOBOS_STABLE_DIR_GENERATED=$(GENERATED)/phobos-release
5656
# Makefile dependencies and rules
5757
PHOBOS_FILES := $(shell find $(PHOBOS_DIR) -name '*.d' -o -name '*.mak' -o -name '*.ddoc')
5858
PHOBOS_FILES_GENERATED := $(subst $(PHOBOS_DIR), $(PHOBOS_DIR_GENERATED), $(PHOBOS_FILES))
59+
$(shell [ ! -d $(PHOBOS_DIR) ] && git clone --depth=1 ${GIT_HOME}/phobos $(PHOBOS_DIR))
60+
$(shell [ ! -d $(PHOBOS_STABLE_DIR) ] && git clone -b v${LATEST} --depth=1 ${GIT_HOME}/phobos $(PHOBOS_STABLE_DIR))
5961
PHOBOS_STABLE_FILES := $(shell find $(PHOBOS_STABLE_DIR) -name '*.d' -o -name '*.mak' -o -name '*.ddoc')
6062
PHOBOS_STABLE_FILES_GENERATED := $(subst $(PHOBOS_STABLE_DIR), $(PHOBOS_STABLE_DIR_GENERATED), $(PHOBOS_STABLE_FILES))
6163
################################################################################

0 commit comments

Comments
 (0)