Conversation
4ac070e to
4401e78
Compare
MoonlightSentinel
left a comment
There was a problem hiding this comment.
Some suggestions
src/build.d
Outdated
| htmlDep.name = "html"; | ||
| htmlDep.description = "Generate html docs, requires DMD and STDDOC to be set"; | ||
| auto docSources = .sources.root ~ .sources.lexer ~ .sources.dmd ~ env["D"].buildPath("frontend.d"); | ||
| if (env.get("DMD", null).length == 0) { |
There was a problem hiding this comment.
Why another variable instead of HOST_DMD_RUN?
There was a problem hiding this comment.
The documentation builder uses the DMD environment variable to select the compiler to generate the documentation.
src/build.d
Outdated
| "-Df" ~ docDep.target, | ||
| docSources[i] | ||
| ] ~ flags["DFLAGS"]; | ||
| docDep.msg = docDep.command.join(" "); |
There was a problem hiding this comment.
| docDep.msg = docDep.command.join(" "); | |
| docDep.msg = docDep.target |
Less noisy, --dry-run already exists to dump the invoked command
There was a problem hiding this comment.
we want to see the commands in the CI builders though.--dry-run is for developers
|
|
||
| ######## DMD frontend source files | ||
|
|
||
| FRONT_SRCS=$(addsuffix .d, $(addprefix $D/,access aggregate aliasthis apply argtypes argtypes_sysv_x64 arrayop \ |
There was a problem hiding this comment.
Are all these deletions actually related to html generation?
There was a problem hiding this comment.
html gen is the last piece referencing these variables
There was a problem hiding this comment.
And then users won't be able to use the makefile for that anymore?
There was a problem hiding this comment.
No, all build scripts still use make, but make itself calls build.d
Check the logs, e.g.
There was a problem hiding this comment.
No, all build scripts still use make, but make itself calls build.d
Yup, a clever idea if I do say so myself :) It's allowed us to gradually move config from the makefiles to build.d, testing each piece in isolation along the way. We are nearing the end, where now we're able to start removing redundant config from the makefiles, but you can still use the "make" tools to build.
|
Mind the DAutotTest logs: diff --git a/web/phobos-prerelease/dmd_access.html b/web/phobos-prerelease/dmd_access.html
index 5315855..957b499 100644
--- a/web/phobos-prerelease/dmd_access.html
+++ b/web/phobos-prerelease/dmd_access.html
@@ -162,7 +162,7 @@
<div > If you spot a problem with this page, click here to create a Bugzilla issue.
</div>
</div>
- <div class="tip smallprint"> <a href="https://github.com/dlang/dmd/edit/master/dmd/access.d">Improve this page</a>
+ <div class="tip smallprint"> <a href="https://github.com/dlang/dmd/edit/master//dev/shm/dtest/work/repo/dmd/src/dmd/access.d">Improve this page</a>
<div > Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using |
|
Thanks for your pull request and interest in making D better, @marler8997! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#10516" |
105e4e7 to
94c2188
Compare
I switched to passing relative paths for the main source file in ddoc generation and this seems to have fixed the ddoc links. |
|
Getting this error on the GDC build...is |
|
Actually it looks like |
Yeah, I added it in 2.079. dlang/phobos#5943 GDC 8/9 are based on Phobos 2.076. |
No description provided.