diff options
| author | clubby789 <jamie@hill-daniel.co.uk> | 2025-01-13 15:52:08 +0000 |
|---|---|---|
| committer | clubby789 <jamie@hill-daniel.co.uk> | 2025-02-13 19:47:55 +0000 |
| commit | 296625613386532e8a6963f821716db119c2ab62 (patch) | |
| tree | 34d1da9f454b292bdca0ec6b8c9f08d7eea89abe /compiler/rustc_codegen_gcc/src/lib.rs | |
| parent | c241e146506600f5ab7f4026ff015df8a658400e (diff) | |
| download | rust-296625613386532e8a6963f821716db119c2ab62.tar.gz rust-296625613386532e8a6963f821716db119c2ab62.zip | |
Make `-O` mean `-C opt-level=3`
Diffstat (limited to 'compiler/rustc_codegen_gcc/src/lib.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_gcc/src/lib.rs b/compiler/rustc_codegen_gcc/src/lib.rs index ce88ac39021..6455bcec685 100644 --- a/compiler/rustc_codegen_gcc/src/lib.rs +++ b/compiler/rustc_codegen_gcc/src/lib.rs @@ -476,7 +476,7 @@ fn to_gcc_opt_level(optlevel: Option<OptLevel>) -> OptimizationLevel { Some(level) => match level { OptLevel::No => OptimizationLevel::None, OptLevel::Less => OptimizationLevel::Limited, - OptLevel::Default => OptimizationLevel::Standard, + OptLevel::More => OptimizationLevel::Standard, OptLevel::Aggressive => OptimizationLevel::Aggressive, OptLevel::Size | OptLevel::SizeMin => OptimizationLevel::Limited, }, |
