Skip to content
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

rdmd: Don't recompile the program if only current directory changes #146

Merged
1 commit merged into from
Sep 8, 2014

Conversation

CyberShadow
Copy link
Member

Use the absolute path to the root .d file instead.

It is certainly possible that the build result will depend on
the current directory. For example, if the root file imports
other modules, these will be sought in the current directory
first. However, this is an unlikely use case, and can be
simulated using e.g. --force or -I%CD%.

On the other hand, having your script be rebuilt every time
it is run from a different directory is an unnecessary waste
of time and disk space.

Use the absolute path to the root .d file instead.

It is certainly possible that the build result will depend on
the current directory. For example, if the root file imports
other modules, these will be sought in the current directory
first. However, this is an unlikely use case, and can be
simulated using e.g. --force or -I%CD%.

On the other hand, having your script be rebuilt every time
it is run from a different directory is an unnecessary waste
of time and disk space.
@ghost
Copy link

ghost commented Sep 8, 2014

LGTM, works on Posix. And I agree with the change as well. There's no bugzilla issue though, mind creating one and we'll close it?

ghost pushed a commit that referenced this pull request Sep 8, 2014
rdmd: Don't recompile the program if only current directory changes
@ghost ghost merged commit 01e349a into dlang:master Sep 8, 2014
@CyberShadow
Copy link
Member Author

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant