Trait libafl_cc::CompilerWrapper
source · pub trait CompilerWrapper {
Show 14 methods
// Required methods
fn parse_args<S>(&mut self, args: &[S]) -> Result<&mut Self, Error>
where S: AsRef<str>;
fn add_arg<S>(&mut self, arg: S) -> &mut Self
where S: AsRef<str>;
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>;
fn command(&mut self) -> Result<Vec<String>, Error>;
fn is_linking(&self) -> bool;
fn silence(&mut self, value: bool) -> &mut Self;
fn is_silent(&self) -> bool;
// Provided methods
fn add_args<S>(&mut self, args: &[S]) -> &mut Self
where S: AsRef<str> { ... }
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> { ... }
fn filter(&self, _args: &mut Vec<String>) { ... }
fn run(&mut self) -> Result<Option<i32>, Error> { ... }
}
Expand description
Wrap a compiler hijacking its arguments
Required Methods§
sourcefn parse_args<S>(&mut self, args: &[S]) -> Result<&mut Self, Error>where
S: AsRef<str>,
fn parse_args<S>(&mut self, args: &[S]) -> Result<&mut Self, Error>where S: AsRef<str>,
Set the wrapper arguments parsing a command line set of arguments
sourcefn add_cc_arg<S>(&mut self, arg: S) -> &mut Selfwhere
S: AsRef<str>,
fn add_cc_arg<S>(&mut self, arg: S) -> &mut Selfwhere S: AsRef<str>,
Add a compiler argument only when compiling
sourcefn add_link_arg<S>(&mut self, arg: S) -> &mut Selfwhere
S: AsRef<str>,
fn add_link_arg<S>(&mut self, arg: S) -> &mut Selfwhere S: AsRef<str>,
Add a compiler argument only when linking
sourcefn link_staticlib<S>(&mut self, dir: &Path, name: S) -> &mut Selfwhere
S: AsRef<str>,
fn link_staticlib<S>(&mut self, dir: &Path, name: S) -> &mut Selfwhere S: AsRef<str>,
Link static C lib
sourcefn is_linking(&self) -> bool
fn is_linking(&self) -> bool
Get if in linking mode
Provided Methods§
sourcefn add_cc_args<S>(&mut self, args: &[S]) -> &mut Selfwhere
S: AsRef<str>,
fn add_cc_args<S>(&mut self, args: &[S]) -> &mut Selfwhere S: AsRef<str>,
Add compiler arguments only when compiling