-
-
Notifications
You must be signed in to change notification settings - Fork 753
Fix issue 16291 -- phobosinit fails to register encodings on individual tests #4744
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 |
|---|---|---|
|
|
@@ -132,6 +132,7 @@ version (Posix) | |
| { | ||
| version (OSX) | ||
| { | ||
| import std.internal.phobosinit; // needed to make sure the function gets called | ||
|
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. Please don't reference the encoding scheme init from std.process, merging all constructors in phobosinit is a really bad idea.
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. Yes, I think that's why default hello world goes up in space so much. Ugly as it is, we need an individual internal module for each module that has cycles.
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 think this relates to https://issues.dlang.org/show_bug.cgi?id=16580 as well. |
||
| extern(C) char*** _NSGetEnviron() nothrow; | ||
| private __gshared const(char**)* environPtr; | ||
| extern(C) void std_process_shared_static_this() { environPtr = _NSGetEnviron(); } | ||
|
|
||
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.
Can this be made
@nogc? Would be nice.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.
No.
EncodingScheme.registerallocates, so this can't be marked@nogc. In any case, it's called beforemain, so I don't see why it needs to be.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.
OK, thanks.