-
-
Notifications
You must be signed in to change notification settings - Fork 386
Use the $(DDOC_BIN) preprocessor with --compiler" #2177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks for your pull request, @wilzbach! 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. |
| import std.getopt; | ||
| auto helpInformation = getopt( | ||
| rootArgs, std.getopt.config.passThrough, | ||
| std.getopt.config.required, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
config.required suffices?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Config config; is defined above ;-)
| ################################################################################ | ||
|
|
||
| DDOC_BIN:=$G/ddoc | ||
| DDOC_BIN_DMD:=$(DDOC_BIN) --compiler=$(DMD) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure where := became a thing in our makefiles. We've kept it for special cases so far.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we started to have ugly, hard-to-trace bugs due accidentally overwritten of variables, see e.g. #1953
1caf108 to
7055c53
Compare
|
@ others. FYI: the diff is a bit larger because
|
|
Something weird is happening in |
It's the grammar file and expected (one of the reasons why I made this PR). https://github.com/dlang/dlang.org/blob/master/spec/grammar.dd (I accidentally forgot using the ddoc preprocessor for PDF + Ebook when I made the Grammar generating PR) |
We always want to use the latest
$(DMD)to build the documentation as-w(Fix Issue 18083 - -w doesn't work for the ddoc build dmd#7440)This makes it more explicit and also adds
$(DDOC_BIN)to a couple of other instances as:(this might produce changes in the verbatim files)