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
lto=fat
The following simple Rust program fails to correctly read the env::args when built with the following compile arguments:
env::args
cat >| ./main.rs << 'EOS' pub fn main () { eprintln!("{:?}", ::std::env::args ()); eprintln!("{:?}", ::std::env::args_os ()); } EOS
~/.cargo/bin/rustc +stable --version rustc 1.59.0 (9d1b2106e 2022-02-23)
env \ -i \ PATH=/usr/bin \ TMPDIR=/tmp \ \ ~/.cargo/bin/rustc \ \ +stable \ \ -C lto=fat \ -C target-feature=+crt-static \ -C relocation-model=static \ -C linker=clang \ -C link-arg=-fuse-ld=mold \ \ -o ./main \ -- \ ./main.rs \ #
./main 1 2 3 Args { inner: [] } ArgsOs { inner: [] }
clang --version clang version 13.0.1 mold --version mold 1.1 (compatible with GNU ld)
The text was updated successfully, but these errors were encountered:
Thank you for your report. It looks like something is wrong when -C relocation-model=static is given. Investigating...
-C relocation-model=static
Sorry, something went wrong.
4198627
I think the issue has been fixed in the above patch.
No branches or pull requests
The following simple Rust program fails to correctly read the
env::args
when built with the following compile arguments:The text was updated successfully, but these errors were encountered: