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

Cannot pass flags to rustc from cargo build. #313

Closed
xldenis opened this issue Aug 3, 2014 · 3 comments
Closed

Cannot pass flags to rustc from cargo build. #313

xldenis opened this issue Aug 3, 2014 · 3 comments

Comments

@xldenis
Copy link

xldenis commented Aug 3, 2014

I can't seem to pass flags down to rustc when running cargo-build. Specifically the command would be:

/usr/local/lib/cargo/cargo-build --target i686-unknown-linux-gnu --emit=obj --opt-level=3 -Z lto -Z no-landing-pads  --verbose --release
Unknown flag: '--emit'
Usage:
    cargo-build [options]
make: *** [build/x86/main.o] Error 1
@alexchandel
Copy link

In particular, from IRC, you're saying that --emit, --opt-level, -Z lto, -Z no-landing-pads, and --release don't work?

@alexcrichton
Copy link
Member

Closing as a dupe of #313

@alexcrichton
Copy link
Member

#60 that is.

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

3 participants