-
-
Notifications
You must be signed in to change notification settings - Fork 670
Fix Issue 18367 - dmd should not segfault on -X with libraries, but no source files #7839
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
Conversation
| } | ||
| else | ||
| { | ||
| if (global.params.objfiles.dim == 0) |
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.
@wilzbach indentation seems to suggest you missed braces.
UplinkCoder
left a comment
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.
LGTM
|
Argh this is failing on Windows :/ |
|
#7838 will supersede this behavior right? (but still good to submit in meantime) |
|
I thought you don't want |
|
ya, sorry ignore my comment |
|
PR #7838 addresses this (I had to since I have a test for it). I defaulted to writing to |
|
I think producing an error is saner then writing to a default info.json file. This would just need extra documentation and the case isn't very popular anyways. |
|
Ok I changed my PR to issue an error in this case: |
| @@ -0,0 +1,11 @@ | |||
| #!/usr/bin/env bash | |||
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.
this whole file is bash wizadry...I can see one is strong with the bash
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 copied this test to my PR, and added another case to it
indeed, IMO as a general rule it's always better to be explicit (let user choose file name or give error); it reduces bugs (eg what if a user already had an info.json and didn't intend it to be deleted) |
|
Closing this in favor of #7838 then. Thanks @marler8997 ! |
I wish all segfaults would be that easy.