Skip to content
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

command line passthrough is flawed #732

Closed
nagisa opened this issue Sep 23, 2016 · 1 comment
Closed

command line passthrough is flawed #732

nagisa opened this issue Sep 23, 2016 · 1 comment

Comments

@nagisa
Copy link
Member

nagisa commented Sep 23, 2016

$ rustc test.rs --emit=llvm-ir,asm --crate-type=lib -O -o test
# works
$ rustup run beta rustc test.rs --emit=llvm-ir,asm --crate-type=lib -O -o test
error: multiple input filenames provided
$ rustup run beta rustc -- test.rs --emit=llvm-ir,asm --crate-type=lib -O -o test
error: multiple input filenames provided
$ rustup run beta -- rustc test.rs --emit=llvm-ir,asm --crate-type=lib -O -o test
error: multiple input filenames provided

rustup assumes --emit=llvm-ir,asm is not a single argument for some reason and splits --emit=llvm-ir,asm on the comma, passing rustc two distinct arguments.

@Diggsey
Copy link
Contributor

Diggsey commented Sep 23, 2016

Dup of #665

@Diggsey Diggsey closed this as completed Sep 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants