Skip to content

Commit

Permalink
-Oz is not supported by arm-linux-gnueabihf-gcc-11
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Nov 22, 2024
1 parent 19f492f commit 60eb9fd
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ final class OptimizationLevel {
/// Optimize for code size, even if it impacts runtime performance.
static const OptimizationLevel oS = OptimizationLevel._('Os');

/// Optimize aggressively for code size, potentially at the cost of
/// compilation time and debugging capabilities.
///
/// Not supported in MSVC, defaults to [oS] for MSVC.
static const OptimizationLevel oZ = OptimizationLevel._('Oz');

/// Unspecified optimization level; the default or compiler-chosen level.
static const OptimizationLevel unspecified =
OptimizationLevel._('unspecified');
Expand All @@ -49,7 +43,6 @@ final class OptimizationLevel {
String msvcFlag() => switch (this) {
// TODO: Handle this case.
o3 => o2.msvcFlag(),
oZ => oS.msvcFlag(),
_ => '/$_level',
};

Expand All @@ -59,7 +52,6 @@ final class OptimizationLevel {
o2,
o3,
oS,
oZ,
unspecified,
];
}

0 comments on commit 60eb9fd

Please sign in to comment.