Skip to content

Comments

Modernize dcompiler documentation#2290

Merged
dlang-bot merged 1 commit intodlang:masterfrom
wilzbach:cli
Jul 3, 2018
Merged

Modernize dcompiler documentation#2290
dlang-bot merged 1 commit intodlang:masterfrom
wilzbach:cli

Conversation

@wilzbach
Copy link
Contributor

A few small improvements to the respective dmd.html files.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @wilzbach!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.


$(OL
$(LI $(LINK2 https://dlang.org/download.html, Download D Compiler))
$(LI $(LINK2 https://dlang.org/download.html, DMD Compiler))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D compiler might be confusing, because this documentation is about DMD and not every D compiler.
Also Download is already in title and it's marked as a link, but I only feel strongly about using DMD.

)
$(FREEBSD
$(LI 32 bit x86 FreeBSD 7.1 operating system)
$(LI 32 bit x86 and 64 bit x86-64 FreeBSD operating system (11 or later))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can put comments in the .dd file by putting them inside $(COMMENT my illuminating explanation) which expands to nothing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh that comment was just intended as a help for the reviewers, s.t. it's clear why I made this change.

$(WINDOWS
$(MESSAGE_BOX gray, $(B Hint) - The official $(LINK2 $(ROOT_DIR)download.sh, installer)
performs these steps automatically.
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This documentation is also displayed via e.g. -man and linked from the release pages, so chances are actually very high that the user has already installed DMD and just looks for a documentation of the CLI flags.

Copy link
Contributor

@JinShil JinShil Apr 5, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That install script requires a posix/bash environment, and I suspect most Windows users don't have that.

$(P Linking 64 bit programs is done using the
Microsoft linker.
Microsoft linker by default. If the Microsoft linker is not found,
the included LLVM linker LLD will be used.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make -f win32.mak
cd ..\phobos
make -f win32.mak DMD=$(DMDDIR)\$(OS)\bin\dmd
make -f win32.mak
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make -f posix.mak DMD=~/$(DMDDIR)/$(OS)/bin/dmd
cd ../phobos
make -f posix.mak DMD=~/$(DMDDIR)/$(OS)/bin/dmd
make -f posix.mak
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DRuntime is built automatically since a few months (though currently the source can't be built - https://forum.dlang.org/post/bmfzbxcmwuhcduldjtdx@forum.dlang.org)

dcompiler.dd Outdated
of cross-module optimizations, such as function inlining across modules.
)
$(P The $(D -i) flag can be used to let $(B dmd) automatically search and compile
all depending source files.)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The text above talks about:

dmd can build an executable much faster if as many of the source files as possible are put on the command line.

Well, nowadays that's no longer necessary with -i (though I wasn't sure on the wording or if we should modify the existing paragraph.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest the following wording instead:

$(P The $(D -i) flag can be used to automatically compile imported modules)

@wilzbach
Copy link
Contributor Author

wilzbach commented Jun 8, 2018

Addressed the review. Can we get this merged?

@wilzbach
Copy link
Contributor Author

wilzbach commented Jul 3, 2018

Addressed the review. Can we get this merged? (25 days ago)

Ping.

@wilzbach wilzbach added the 72h no objection -> merge The PR will be merged if there are no objections raised. label Jul 3, 2018
@dlang-bot dlang-bot merged commit f031b1f into dlang:master Jul 3, 2018
@wilzbach wilzbach deleted the cli branch July 18, 2018 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

72h no objection -> merge The PR will be merged if there are no objections raised. auto-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants