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§

source

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

source

fn add_arg<S>(&mut self, arg: S) -> &mut Selfwhere S: AsRef<str>,

Add a compiler argument

source

fn add_cc_arg<S>(&mut self, arg: S) -> &mut Selfwhere S: AsRef<str>,

Add a compiler argument only when compiling

Add a compiler argument only when linking

Link static C lib

source

fn command(&mut self) -> Result<Vec<String>, Error>

Command to run the compiler

source

fn is_linking(&self) -> bool

Get if in linking mode

source

fn silence(&mut self, value: bool) -> &mut Self

Silences libafl_cc output

source

fn is_silent(&self) -> bool

Returns true if silence was called with true

Provided Methods§

source

fn add_args<S>(&mut self, args: &[S]) -> &mut Selfwhere S: AsRef<str>,

Add compiler arguments

source

fn add_cc_args<S>(&mut self, args: &[S]) -> &mut Selfwhere S: AsRef<str>,

Add compiler arguments only when compiling

Add compiler arguments only when linking

source

fn filter(&self, _args: &mut Vec<String>)

Filter out argumets

source

fn run(&mut self) -> Result<Option<i32>, Error>

Run the compiler

Implementors§