Generate id.d and id.h using "dmd -run idgen.d" instead of compiling#6735
Generate id.d and id.h using "dmd -run idgen.d" instead of compiling#6735marler8997 wants to merge 1 commit intodlang:masterfrom
Conversation
…idgen.d and running in 2 steps.
|
This is what it used to do, but it was changed. I don't remember why it was changed, but it needs to be worked out before it is changed back. |
|
Probably such that it does not have to needlessly recompile it. |
|
@UplinkCoder There's a makefile rule for it, it should only be compiled once. Actually this method will likely result in less recompilation since it seems that the "generated" directory where the idgen binary lives is cleaned for each run of make. By using the method in this PR there is no intermediate binary that gets cleaned every time so it should only recompile when idgen.d actually changes. |
|
Related PR: #6837 (Replace idgen with CTFE implementation) |
|
Yeah, since #6837 has been merged, I would say this PR is obsolete. |
Agreed, thanks for the work @marler8997, but in this case I think the merged CTFE approach is simpler and more flexible. |
Simple build simplification. Run idgen.d directly using "dmd -run" instead of compiling and running in 2 seperate steps.