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 | fd526a248c05b846507291a6281c06e10c2d05f7 (patch) | |
| tree | eeb2b5c3a48225297999c5997d8c6b849eefbf26 /src/lib.rs | |
| parent | 853ae3dd0c9acaa73ce2615e0bd922d2c45bfcbb (diff) | |
Make `-O` mean `-C opt-level=3`
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs index ce88ac39021..6455bcec685 100644 --- a/src/lib.rs +++ b/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, }, |
