pub struct CompileArguments {
pub opt_level: OptLevel,
pub debug_info: bool,
pub define_ndebug: bool,
pub include_dirs: Vec<Utf8PathBuf>,
pub defines: Vec<String>,
pub extra_flags: Vec<String>,
}Expand description
Semantic arguments for a compile, with no flag spelled out.
The language standard is not stored: it is fixed per source
language (C → C11, C++ → C++17) and spelled by the dialect from
CompileAction::language. The optimization / debug / assertion
intent comes from the resolved profile.
Fields§
§opt_level: OptLevelOptimization level the active profile selected (-O0 / /Od,
…).
debug_info: boolEmit debug information (-g / /Zi).
define_ndebug: boolDefine NDEBUG (assertions disabled in the active profile).
include_dirs: Vec<Utf8PathBuf>Include search directories. Spelled -I <dir> / /I <dir>.
defines: Vec<String>Preprocessor defines, without any prefix. Spelled -D<define>
/ /D<define>.
extra_flags: Vec<String>Escape-hatch compile flags appended verbatim after the include block. The user writes these in the active dialect (language-neutral first, then language-specific).
Trait Implementations§
Source§impl Clone for CompileArguments
impl Clone for CompileArguments
Source§fn clone(&self) -> CompileArguments
fn clone(&self) -> CompileArguments
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompileArguments
impl Debug for CompileArguments
impl Eq for CompileArguments
Source§impl PartialEq for CompileArguments
impl PartialEq for CompileArguments
Source§fn eq(&self, other: &CompileArguments) -> bool
fn eq(&self, other: &CompileArguments) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CompileArguments
Auto Trait Implementations§
impl Freeze for CompileArguments
impl RefUnwindSafe for CompileArguments
impl Send for CompileArguments
impl Sync for CompileArguments
impl Unpin for CompileArguments
impl UnsafeUnpin for CompileArguments
impl UnwindSafe for CompileArguments
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.