Add opt-level options for optimizing for size and minimum size. This attempts
to mimic the behavior of clang's options Os and Oz.
This commit is contained in:
parent
8da2bcac5d
commit
b1337d309a
4 changed files with 69 additions and 19 deletions
|
@ -44,6 +44,7 @@ pub use self::FileType::*;
|
|||
pub use self::MetadataType::*;
|
||||
pub use self::AsmDialect::*;
|
||||
pub use self::CodeGenOptLevel::*;
|
||||
pub use self::CodeGenOptSize::*;
|
||||
pub use self::RelocMode::*;
|
||||
pub use self::CodeGenModel::*;
|
||||
pub use self::DiagnosticKind::*;
|
||||
|
@ -375,6 +376,14 @@ pub enum CodeGenOptLevel {
|
|||
CodeGenLevelAggressive = 3,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
#[repr(C)]
|
||||
pub enum CodeGenOptSize {
|
||||
CodeGenOptSizeNone = 0,
|
||||
CodeGenOptSizeDefault = 1,
|
||||
CodeGenOptSizeAggressive = 2,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq)]
|
||||
#[repr(C)]
|
||||
pub enum RelocMode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue