We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm not sure that this is definitely a cxx problem, but here's the investigation I've done so far.
std::env::args when called from a Rust library, linked to a C++ binary, returns an empty array on FreeBSD.
std::env::args
There's a minimal reproducing repo at https://github.com/zanchey/argstest/ (clone and run make to produce an argstest binary) which:
On Linux/glibc this correctly produces (say) Args { inner: ["./argstest", "foo", "bar", "baz"] }, but on FreeBSD returns Args { inner: [] }.
Args { inner: ["./argstest", "foo", "bar", "baz"] }
Args { inner: [] }
I don't know if cxx does any magic with the args vector to make it visible from Rust? I couldn't see anything obvious.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm not sure that this is definitely a cxx problem, but here's the investigation I've done so far.
std::env::args
when called from a Rust library, linked to a C++ binary, returns an empty array on FreeBSD.There's a minimal reproducing repo at https://github.com/zanchey/argstest/ (clone and run make to produce an argstest binary) which:
std::env::args
On Linux/glibc this correctly produces (say)
Args { inner: ["./argstest", "foo", "bar", "baz"] }
, but on FreeBSD returnsArgs { inner: [] }
.I don't know if cxx does any magic with the args vector to make it visible from Rust? I couldn't see anything obvious.
The text was updated successfully, but these errors were encountered: