@@ -205,9 +205,9 @@ MOD_EXCLUDES_PRERELEASE=$(addprefix --ex=, \
205
205
std.experimental.ndslice.internal std.stdiobase \
206
206
std.typetuple \
207
207
tk. msvc_dmc msvc_lib \
208
- ddmd.libmach ddmd.libmscoff ddmd.objc_glue \
208
+ ddmd.libmach ddmd.libmscoff \
209
209
ddmd.scanmach ddmd.scanmscoff \
210
- dmd.libmach dmd.libmscoff dmd.objc_glue \
210
+ dmd.libmach dmd.libmscoff \
211
211
dmd.scanmach dmd.scanmscoff)
212
212
213
213
MOD_EXCLUDES_LATEST =$(MOD_EXCLUDES_PRERELEASE )
@@ -725,10 +725,16 @@ else
725
725
DMD_EXCLUDE += -e /scanmach/d -e /libmach/d
726
726
endif
727
727
728
+ # remove this after https://github.com/dlang/dmd/pull/7513 has been merged
729
+ DMD_EXCLUDE_LATEST =
730
+ ifneq (,$(wildcard $(DMD_DIR ) /src/dmd/objc_glue_stubs.d) )
731
+ DMD_EXCLUDE_LATEST += -e /objc_glue.d/d
732
+ endif
733
+
728
734
$G/docs-latest.json : ${DMD_LATEST} ${DMD_LATEST_DIR} \
729
735
${DRUNTIME_LATEST_DIR} ${PHOBOS_LATEST_FILES_GENERATED} | dpl-docs
730
736
find ${DMD_LATEST_DIR} /src -name ' *.d' | \
731
- sed -e /mscoff/d -e /objc_glue.d/d ${DMD_EXCLUDE} \
737
+ sed -e /mscoff/d ${DMD_EXCLUDE_LATEST} ${DMD_EXCLUDE} \
732
738
> $G /.latest-files.txt
733
739
find ${DRUNTIME_LATEST_DIR} /src -name ' *.d' | \
734
740
sed -e /unittest.d/d -e /gcstub/d >> $G /.latest-files.txt
@@ -741,13 +747,19 @@ $G/docs-latest.json : ${DMD_LATEST} ${DMD_LATEST_DIR} \
741
747
--only-documented $(MOD_EXCLUDES_LATEST )
742
748
rm -f $G /.latest-files.txt $G /.latest-dummy.html
743
749
750
+ # remove this after https://github.com/dlang/dmd/pull/7513 has been merged
751
+ DMD_EXCLUDE_PRERELEASE =
752
+ ifneq (,$(wildcard $(DMD_DIR ) /src/dmd/objc_glue_stubs.d) )
753
+ DMD_EXCLUDE_PRERELEASE += -e /objc_glue.d/d
754
+ endif
755
+
744
756
# DDox tries to generate the docs for all `.d` files. However for dmd this is tricky,
745
757
# because the `{mach, elf, mscoff}` are platform dependent.
746
- # Thus the need to exclude these files (and the `objc_glue.d` file) .
758
+ # Thus the need to exclude these files.
747
759
$G/docs-prerelease.json : ${DMD} ${DMD_DIR} ${DRUNTIME_DIR} \
748
760
${PHOBOS_FILES_GENERATED} | dpl-docs
749
761
find ${DMD_DIR} /src -name ' *.d' | \
750
- sed -e /mscoff/d -e /objc_glue.d/d ${DMD_EXCLUDE} \
762
+ sed -e /mscoff/d ${DMD_EXCLUDE_PRERELEASE} ${DMD_EXCLUDE} \
751
763
> $G /.prerelease-files.txt
752
764
find ${DRUNTIME_DIR} /src -name ' *.d' | sed -e ' /gcstub/d' \
753
765
-e /unittest/d >> $G /.prerelease-files.txt
0 commit comments