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

Choose default compiler using path based priority. #875

Closed
wants to merge 1 commit into from
Closed

Choose default compiler using path based priority. #875

wants to merge 1 commit into from

Conversation

KevinBrogan
Copy link

Old Code: Do a compiler first scan, stopping when one is found, which results in dmd always being the default compiler.

New Code: Do a path scan first, stopping when a compiler is found, and use that compiler instead.

Result: The default compiler selected by dub will depend on how your path is setup, so that the first one found is selected, as oposed to always choosing compilers in a pre determined order.

… results in dmd always being the default compiler.

New Code: Do a path scan first, stopping when a compiler is found, and use that compiler instead.
Result: The default compiler selected by dub will depend on how your path is setup, so that the first one found is selected, as oposed to always choosing compilers in a pre determined order.
@KevinBrogan KevinBrogan changed the title Choose default compiler using path based priority. Jun 11, 2016
@JohanEngelen
Copy link

@KevinBrogan Could you have a look at #895 ? Does it make sense to search dub's own directory first (before using the system path)?

@s-ludwig
Copy link
Member

With #895 being resolved by searching for a configuration file beneath the executable, I'm wondering if this is a good idea. Is selecting programs based on PATH order common practice? My feeling is that this is rather obscure from the outside and using the "defaultCompiler" configuration field as an explicit alternative is already possible.

@Geod24
Copy link
Member

Geod24 commented Dec 3, 2022

Agreed with Sonke's reasoning here.

@Geod24 Geod24 closed this Dec 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants