pub struct ResolvedProfileFlags {
pub defines: Vec<String>,
pub include_dirs: Vec<PathBuf>,
pub extra_compile_args: Vec<String>,
pub cflags: Vec<String>,
pub cxxflags: Vec<String>,
pub ldflags: Vec<String>,
}Expand description
Final, deterministic build-flag set fed to the planner.
defines is sorted-and-deduplicated (defines are commutative
for our purposes); include and argv lists keep user-visible
order, with first-occurrence dedup for include dirs to mirror
the existing planner behavior.
Fields§
§defines: Vec<String>§include_dirs: Vec<PathBuf>§extra_compile_args: Vec<String>Language-neutral compile-time escape-hatch arguments. Applied to every compile command, both C/C++.
cflags: Vec<String>C-only compile-time escape-hatch arguments. Applied only
when the compile command produces an object from a .c
translation unit.
cxxflags: Vec<String>C++-only compile-time escape-hatch arguments. Applied only
when the compile command produces an object from a C++
translation unit (.cc / .cpp / .cxx / .c++ /
.C).
ldflags: Vec<String>Implementations§
Trait Implementations§
Source§impl Clone for ResolvedProfileFlags
impl Clone for ResolvedProfileFlags
Source§fn clone(&self) -> ResolvedProfileFlags
fn clone(&self) -> ResolvedProfileFlags
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 ResolvedProfileFlags
impl Debug for ResolvedProfileFlags
Source§impl Default for ResolvedProfileFlags
impl Default for ResolvedProfileFlags
Source§fn default() -> ResolvedProfileFlags
fn default() -> ResolvedProfileFlags
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResolvedProfileFlags
impl<'de> Deserialize<'de> for ResolvedProfileFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ResolvedProfileFlags
impl PartialEq for ResolvedProfileFlags
Source§fn eq(&self, other: &ResolvedProfileFlags) -> bool
fn eq(&self, other: &ResolvedProfileFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ResolvedProfileFlags
impl Serialize for ResolvedProfileFlags
impl Eq for ResolvedProfileFlags
impl StructuralPartialEq for ResolvedProfileFlags
Auto Trait Implementations§
impl Freeze for ResolvedProfileFlags
impl RefUnwindSafe for ResolvedProfileFlags
impl Send for ResolvedProfileFlags
impl Sync for ResolvedProfileFlags
impl Unpin for ResolvedProfileFlags
impl UnsafeUnpin for ResolvedProfileFlags
impl UnwindSafe for ResolvedProfileFlags
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.