-
-
Notifications
You must be signed in to change notification settings - Fork 699
Issue a nicer error message if critical envvars are missing #7256
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,6 +65,9 @@ OS=windows | |
|
|
||
| ##### Directories | ||
|
|
||
| # DM_HOME should be defined in the user's environment | ||
| DM_HOME=Please_define_the__DM_HOME__environment_variable | ||
|
|
||
| # DMC directory | ||
| DMCROOT=$(DM_HOME)\dm | ||
| # DMD source directories | ||
|
|
@@ -93,6 +96,8 @@ TOOLS_DIR=..\..\tools | |
| CC=dmc | ||
| # D compiler (set with env variable) | ||
| #HOST_DC=dmd | ||
| # For error detection: | ||
| HOST_DC=Please_define_the__HOST_DC__environment_variable | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This works to display a nicer error, but it no longer allows setting HOST_DC in the environment. It is only overwritten on the command line.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On wine at least it works with HOST_DC set in the environment.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you try it on native Windows? Thx!
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That's what I did. Are you sure to invoke DigitalMars make? An explicit test of the variables works, too, but has to be added as a dependency to the defaulttarget and maybe others: (DM make does not seem to interpret the result of executing an implicit shell command, so I had to make it explicit).
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting, I'll look into this. For what it's worth I use
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. BTW we could also set the (if DM make supports this)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried to get this "default" functionality working with DM make and failed...
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nevermind, got it it to work (#7468). |
||
| # Make program | ||
| MAKE=make | ||
| # Librarian | ||
|
|
@@ -627,4 +632,3 @@ $G\ldfpu.obj : vcbuild\ldfpu.asm | |
| ############################## Generated Rules ############################### | ||
|
|
||
| # These rules were generated by makedep, but are not currently maintained | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I never set DM_HOME (and the required naming does not fit my installation), the C compiler already knows its standard include folders.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rainers what if it's in a non-default location?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dmc is not in the default location on my system, but in c:\l\dmc instead. It uses sc.ini, too, containing
INCLUDE="%@P%\..\include";"%@P%\..\mfc\include";%INCLUDE%which points to the standard include folders.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, then can you please submit a small PR to eliminate it entirely? Also it would be great if you also updated the wiki instructions. Thx!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #7260
The wiki uses DM_HOME to refer to the DMD installation directory, that seems ok.