-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
cargo run -v should show setting of LD_LIBRARY_PATH #4879
Comments
I think it would be good to leave this open for a more programmatic way to get the appropriate paths (some kind of JSON output or something). |
|
Oh, I don't think it ever showed the env vars for the actual running of the executable. I think I was just meaning that the calls to |
This makes it difficult to debug Rust binaries that use native dependencies and that require It would be nice if |
I believe that is feasible to be done. Basically, search for Guess not only @rustbot label +E-easy +S-accepted +Command-test +A-console-output |
I know this might sound weird but would that be too noisy even for |
Something like below. Note that we already display all environments set for
(Okay GitHub doesn't wrap lines 😕) |
I guess if we are already doing it for rustc, then doing it in this one case isn't too bad. We delineate sections and this is for one of many invocations. |
FWIW, #12498 not only supports printing environment variables for |
I spoke with someone recently who had some trouble figuring out how to run Cargo-built binaries directly, until they realized that
cargo run
setsLD_LIBRARY_PATH
, which is not documented. When runningcargo run -v
, cargo shows the binaries it runs, but not the setting ofLD_LIBRARY_PATH
. Please include that in the emitted command line invocations (e.g.LD_LIBRARY_PATH=... target/release/...
) when using-v
, to make it more obvious whatcargo run
does.The text was updated successfully, but these errors were encountered: