Skip to content

Commit cef57f3

Browse files
committed
Build Phobos for the current compiler
1 parent a00faa0 commit cef57f3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

posix.mak

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ include $(DMD_DIR)/src/osmodel.mak
145145

146146
# External binaries
147147
DMD=$(DMD_DIR)/generated/$(OS)/release/$(MODEL)/dmd
148+
PHOBOS_LIB=$(PHOBOS_DIR)/generated/$(OS)/release/$(MODEL)/dmd/libphobos2.a
148149

149150
# External directories
150151
DOC_OUTPUT_DIR:=$(PWD)/web
@@ -685,6 +686,9 @@ $W/phobos-prerelease/index.verbatim : verbatim.ddoc \
685686
mv $W/phobos-prerelease-verbatim/* $(dir $@)
686687
rm -r $W/phobos-prerelease-verbatim
687688

689+
$(PHOBOS_LIB): $(DMD)
690+
${MAKE} --directory=${PHOBOS_DIR} -f posix.mak lib
691+
688692
################################################################################
689693
# phobos and druntime, latest released build and current build (DDOX version)
690694
################################################################################
@@ -868,7 +872,7 @@ $(PHOBOS_LATEST_FILES_GENERATED): $(PHOBOS_LATEST_DIR_GENERATED)/%: $(PHOBOS_LAT
868872
# Style tests
869873
################################################################################
870874

871-
test_dspec: dspec_tester.d $(DMD)
875+
test_dspec: dspec_tester.d $(DMD) $(PHOBOS_LIB)
872876
@echo "Test the D Language specification"
873877
$(DMD) -run $< --compiler=$(DMD)
874878

0 commit comments

Comments
 (0)