-
Notifications
You must be signed in to change notification settings - Fork 75
Add ImportC support via dmd -H.
#789
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
base: master
Are you sure you want to change the base?
Conversation
|
Thanks for your Pull Request and making D better! This comment will automatically be updated to summarize some statistics in a few minutes. |
|
See Pure-D/serve-d#328. |
WebFreak001
left a comment
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.
otherwise LGTM
| import std.process : environment; | ||
|
|
||
| if ("DMD" in environment) | ||
| return environment["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.
this needs to be documented in the README or other places where this might be relevant
|
Module auto-complete in serve-d doesn't seem to work yet. Any idea where that would be implemented? |
|
you mean auto complete for this: ? |
|
Yes, that doesn't show ImportC modules yet. |
This adds
.c,.hand.ifiles (see https://dlang.org/spec/importc.html) as 'alternative' (lower priority) importable files.$DMDordmdis called on the source file with-Hto produce a.difile, which we can parse as normal.Note that
.hfiles are only supported by current dmd master, since the merge of dlang/dmd#21692.