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

Dlang incremental build support #3455

Closed
Mergull opened this issue Mar 3, 2023 · 5 comments
Closed

Dlang incremental build support #3455

Mergull opened this issue Mar 3, 2023 · 5 comments

Comments

@Mergull
Copy link

Mergull commented Mar 3, 2023

Is your feature request related to a problem? Please describe.

I've tried to compile one of my projects with xmake. Project setup is really nice and easy. Problem is that xmake doesn't support dependencies for incremental building for Dlang. This leads to requirement for full rebuild everytime something changed (what is really bad for big projects).

Describe the solution you'd like

Only changed files and files which depend on them should be recompiled.
Both DMD and LDC has "-makedeps" option which produce makefile compatible dependency information (so it can be used to get that kind of information).

Describe alternatives you've considered

No response

Additional context

No response

@waruqi waruqi added this to the v2.7.8 milestone Mar 6, 2023
@waruqi
Copy link
Member

waruqi commented Mar 6, 2023

Can you provide an example project?

@Mergull
Copy link
Author

Mergull commented Mar 9, 2023

Link to repository branch: bubel-ecs
There is simple xmake.lua build file on xmake branch

@waruqi
Copy link
Member

waruqi commented Mar 9, 2023

thanks, I will look at it, but maybe need some times.

@waruqi
Copy link
Member

waruqi commented Mar 9, 2023

try this patch. #3487

xmake update -s github:xmake-io/xmake#dlang

@Mergull
Copy link
Author

Mergull commented Mar 9, 2023

That's was quick! From brief testing it looks that incremental building is working now. Thanks!

@Mergull Mergull closed this as completed Mar 9, 2023
waruqi added a commit that referenced this issue Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants