-
Notifications
You must be signed in to change notification settings - Fork 386
Support for std::env::vars() (and ::vars_os) #936
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
Comments
This is being worked on right now: #928 The way rustc exposes statics to us is being adjusted to support this case |
Neat! Not sure how I missed that issue, thanks! |
Well what is being worked on is the Linux version. Not sure how much extra work the macOS version needs and if @christianpoveda is up for that. ;) |
But indeed this is a duplicate of #756. |
I'm subscribed to #756 now, and will happily tackle the OSX side of it once it works for Linux :) |
iirc there shouldn't be too much problem implementing this for macos after finishing linux (which will happen in the "near" future). |
I'll ping you when the linux implementation is done :) |
Hi!
I came across an issue trying to run a
proptest
-based test suite viamiri
.proptest
relies on thestd::env::vars
function to read a snapshot of all environment variables.This fails on my OSX machine with the following error:
Reading through the implementation of
std::env::vars
, it will call the_NSGetEnviron
function on OSX, and on all other unix machines it will rely on an external symbol (extern char **environ
) to read the environment.Looking at the current shim code, I can see how it would be possible to implement for OSX, but it's not clear to me how you would implement this for other UNIX systems, as there doesn't seem to be an existing way in
miri
to hook into external symbols that are not functions.The text was updated successfully, but these errors were encountered: