Skip to content

Comments

Dscanner Makefile: separate target + order-only dependencies#5518

Merged
dlang-bot merged 3 commits intodlang:masterfrom
wilzbach:dscanner
Jun 28, 2017
Merged

Dscanner Makefile: separate target + order-only dependencies#5518
dlang-bot merged 3 commits intodlang:masterfrom
wilzbach:dscanner

Conversation

@wilzbach
Copy link
Contributor

No description provided.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @wilzbach! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.

Some tips to help speed things up:

  • smaller, focused PRs are easier to review than big ones

  • try not to mix up refactoring or style changes with bug fixes or feature enhancements

  • provide helpful commit messages explaining the rationale behind each change

Bear in mind that large or tricky changes may require multiple rounds of review and revision.

Please see CONTRIBUTING.md for more information.

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.

@CyberShadow
Copy link
Member

Make $(LIB) and $(LIB) an order-only dependency for DScanner

$(DMD) and $(LIB) ?

@wilzbach
Copy link
Contributor Author

$(DMD) and $(LIB) ?

Fixed. Sorry.

wilzbach added 2 commits June 28, 2017 14:16
This avoids recompilation of DScanner when a file in Phobos has been
changed. DScanner only needs a recent Phobos version to be built once.
@CyberShadow
Copy link
Member

To avoid problems due to stale versions of DScanner, I'd suggest cloning it to a directory with the commit hash as part of the directory name, in the same way the dlang.org makefiles clone the stable versions of Phobos etc.

LGTM otherwise.

GIT_HOME=https://github.com/dlang
TOOLS_DIR=../tools
DSCANNER_HASH=455cc3fe50e6d0742c866737b4ac24669d51a992
DSCANNER_DIR=../dscanner-$(DSCANNER_HASH)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

To avoid problems due to stale versions of DScanner, I'd suggest cloning it to a directory with the commit hash as part of the directory name, in the same way the dlang.org makefiles clone the stable versions of Phobos etc.

Excellent idea. Do you prefer long, short git hashes or simply don't care?

Copy link
Member

Choose a reason for hiding this comment

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

I don't think it really matters, so whatever's simplest!

@dlang-bot dlang-bot merged commit 56a7ddd into dlang:master Jun 28, 2017
@wilzbach wilzbach deleted the dscanner branch December 11, 2017 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants