-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
rustpkg may be ignoring -O flag #10468
Comments
I'm getting the same results (viz. no optimisations) for Here are rust-http sizes, for example:
|
On IRC, @huonw noted that even |
(It just appears that the binary from crates without a |
No dice. Anyone have other ideas for a workaround? I've been continuing to poke around the rustpkg source, but I can't seem to build it without rebuilding the whole tree - |
This commit fixes issue #10468. It propagate optimization level from PkgSrc to compile_crate as a rustc::driver::session::OptLevel enum. The 'opt' argument to compile_crate was previously hardcoded as boolean false, such that calls to session::options would always result in the session::No flag being used.
#10526 supposedly fixed, just needs a test. |
Rustpkg was dropped... Transfers the bug to the actual repository of rustpkg and close it? |
Add `allow_attribute` lint Fixes rust-lang#10468 changelog: new lint: [`allow_attributes`] [rust-lang#10481](rust-lang/rust-clippy#10481)
@chrismorgan reports that
rustpkg install -O http
(aftergit clone
ing http://github.com/chris-morgan/rust-http ) seems to silently ignore the -O flag. (I'm not yet sure whether this is because it should berustpkg -O install http
or not, as I haven't reproduced it yet. Of course, both ways should work.)The text was updated successfully, but these errors were encountered: