mozilla/rust — pull request #10526 by itdaniher (2013-11-17 01:36:46+00:00)
Title: Fix for Rustpkg Opt Settings

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.