mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 13:56:40 +00:00
Remove uses of -Oz flag (#7128)
The `-Oz` flag has been [removed from LLVM](https://github.com/llvm/llvm-project/pull/191363). The documented replacement is to use `-O2` in conjunction with the `optsize` or `minsize` attributes, which we already apply in lowering.
This commit is contained in:
1 parent
73adc479e3
commit
a8c6a7f88d
2 files changed
+3
-3
No files matched your search
@@ -865,7 +865,7 @@ static auto GetLLVMOptimizationLevel(Lower::OptimizationLevel opt_level)
|
||||
case Lower::OptimizationLevel::Debug:
|
||||
return llvm::OptimizationLevel::O1;
|
||||
case Lower::OptimizationLevel::Size:
|
||||
return llvm::OptimizationLevel::Oz;
|
||||
return llvm::OptimizationLevel::O2;
|
||||
case Lower::OptimizationLevel::Speed:
|
||||
return llvm::OptimizationLevel::O3;
|
||||
}
|
||||
@@ -880,7 +880,7 @@ static auto GetClangOptimizationFlag(Lower::OptimizationLevel opt_level)
|
||||
case Lower::OptimizationLevel::Debug:
|
||||
return "-O1";
|
||||
case Lower::OptimizationLevel::Size:
|
||||
return "-Oz";
|
||||
return "-O2";
|
||||
case Lower::OptimizationLevel::Speed:
|
||||
return "-O3";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user