We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
optimize
debug
Cargo.toml
1 parent 088fc73 commit ac4945cCopy full SHA for ac4945c
src/bootstrap/config.rs
@@ -624,6 +624,9 @@ impl Config {
624
let default = false;
625
config.llvm_assertions = llvm_assertions.unwrap_or(default);
626
627
+ let default = true;
628
+ config.rust_optimize = optimize.unwrap_or(default);
629
+
630
let default = match &config.channel[..] {
631
"stable" | "beta" | "nightly" => true,
632
_ => false,
@@ -636,7 +639,6 @@ impl Config {
636
639
config.debug_jemalloc = debug_jemalloc.unwrap_or(default);
637
640
config.rust_debuginfo = debuginfo.unwrap_or(default);
638
641
config.rust_debug_assertions = debug_assertions.unwrap_or(default);
- config.rust_optimize = optimize.unwrap_or(!default);
642
643
let default = config.channel == "dev";
644
config.ignore_git = ignore_git.unwrap_or(default);
0 commit comments