Trait libafl_cc::CompilerWrapper
source · pub trait CompilerWrapper: ToolWrapper {
// Required methods
fn add_cc_arg<S>(&mut self, arg: S) -> &mut Self
where S: AsRef<str>;
fn add_link_arg<S>(&mut self, arg: S) -> &mut Self
where S: AsRef<str>;
fn link_staticlib<S>(&mut self, dir: &Path, name: S) -> &mut Self
where S: AsRef<str>;
// Provided methods
fn add_cc_args<S>(&mut self, args: &[S]) -> &mut Self
where S: AsRef<str> { ... }
fn add_link_args<S>(&mut self, args: &[S]) -> &mut Self
where S: AsRef<str> { ... }
}
Expand description
Wrap a compiler hijacking its arguments
Required Methods§
sourcefn add_cc_arg<S>(&mut self, arg: S) -> &mut Self
fn add_cc_arg<S>(&mut self, arg: S) -> &mut Self
Add a compiler argument only when compiling
sourcefn add_link_arg<S>(&mut self, arg: S) -> &mut Self
fn add_link_arg<S>(&mut self, arg: S) -> &mut Self
Add a compiler argument only when linking
Provided Methods§
sourcefn add_cc_args<S>(&mut self, args: &[S]) -> &mut Self
fn add_cc_args<S>(&mut self, args: &[S]) -> &mut Self
Add compiler arguments only when compiling
Object Safety§
This trait is not object safe.