Skip to content

fix visuald generator to use selected compiler instead of hardcoded dmd#3094

Open
kmr-ankitt wants to merge 2 commits intodlang:masterfrom
kmr-ankitt:fix/visuald-hardcoded-dmd
Open

fix visuald generator to use selected compiler instead of hardcoded dmd#3094
kmr-ankitt wants to merge 2 commits intodlang:masterfrom
kmr-ankitt:fix/visuald-hardcoded-dmd

Conversation

@kmr-ankitt
Copy link

The VisualD generator currently hardcodes the DMD executable path.

This change replaces the hardcoded DMD path with the selected compiler
name, ensuring correct behavior across supported compilers.

@github-actions
Copy link

github-actions bot commented Mar 2, 2026

Thanks for your Pull Request and making D better!

This comment will automatically be updated to summarize some statistics in a few minutes.

ret.formattedWrite(" <fileImppath>%s</fileImppath>\n", stringImports);

ret.formattedWrite(" <program>%s</program>\n", "$(DMDInstallDir)windows\\bin\\dmd.exe"); // FIXME: use the actually selected compiler!
ret.formattedWrite(" <program>%s</program>\n", settings.compiler.name);
Copy link
Member

Choose a reason for hiding this comment

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

$(DMDInstallDir) is a placeholder for VisualD, which makes the program portable across PCs - we probably want to keep using it or use some other variables so that it keeps working even if sharing project folders across different PCs

Copy link
Author

Choose a reason for hiding this comment

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

ok, i get it.
i see these under VisualD
image

so, using these variables according to the case fixes this?

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.

2 participants