pub struct ResolvedProfileFlags {
pub defines: Vec<String>,
pub include_dirs: Vec<Utf8PathBuf>,
pub extra_compile_args: Vec<String>,
pub cflags: Vec<String>,
pub cxxflags: Vec<String>,
pub ldflags: Vec<String>,
pub link_libs: 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<Utf8PathBuf>§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>§link_libs: Vec<String>Validated bare system-library names that propagate to the
link of every executable depending on this package. The
build planner walks the dependency closure, collects these,
and emits -l<name> (after the archives) on the consumer’s
link command.
Implementations§
Trait Implementations§
Source§impl Clone for ResolvedProfileFlags
impl Clone for ResolvedProfileFlags
Source§fn clone(&self) -> ResolvedProfileFlags
fn clone(&self) -> ResolvedProfileFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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>,
impl Eq for ResolvedProfileFlags
Source§impl PartialEq for ResolvedProfileFlags
impl PartialEq for ResolvedProfileFlags
Source§fn eq(&self, other: &ResolvedProfileFlags) -> bool
fn eq(&self, other: &ResolvedProfileFlags) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ResolvedProfileFlags
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.