Skip to content

Make DFLAGS works on the command line#81

Closed
BorisCarvajal wants to merge 1 commit intogentoo:masterfrom
BorisCarvajal:master
Closed

Make DFLAGS works on the command line#81
BorisCarvajal wants to merge 1 commit intogentoo:masterfrom
BorisCarvajal:master

Conversation

@BorisCarvajal
Copy link

I found out that DFLAGS was not working.
Check with:
DFLAGS="-v qwerty" dmd

I also moved the env. variable to the end of final flags just in case you need override something from the .conf file.

@mleise
Copy link
Collaborator

mleise commented Jan 19, 2020

I just checked the dmd.conf for Ubuntu and understand this as an enhancement for how DMD handles environment variables specifically on Gentoo. Or is there precedent in other distributions? I like the idea, but it could cause issues where DFLAGS is currently set and not expected to be picked up by the compiler itself in every instance.

@BorisCarvajal
Copy link
Author

I've been researching about this problem and it had some debate in the past but it was decided by Walter to close the issue.
I really don't like the decision, it makes little sense to me, maybe the name is prone to mistakes.
Actually I can mess up dmd by simply using the environment var. CC. For example CC=qwerty will render all my code unable to link.

https://issues.dlang.org/show_bug.cgi?id=1660
https://issues.dlang.org/show_bug.cgi?id=18433
dlang/tools#343

@mleise
Copy link
Collaborator

mleise commented Feb 10, 2020

I'm not merging this now, because I don't want to invest the time to check all the ebuilds and because upstream is undecided on how to deal with environment variables. If you want to join the "team" you could invest the time yourself and maintain this patch.

@mleise
Copy link
Collaborator

mleise commented Jul 15, 2022

Closing this now. Sorry!

@mleise mleise closed this Jul 15, 2022
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