pub struct ClangWrapper { /* private fields */ }Implementations§
Source§impl ClangWrapper
impl ClangWrapper
pub fn new(name: &str, compiler_kind: CompilerKind) -> Self
Trait Implementations§
Source§impl CompilerWrapper for ClangWrapper
impl CompilerWrapper for ClangWrapper
Source§fn wrapped_compiler(&self) -> &Path
fn wrapped_compiler(&self) -> &Path
Obtain the path to the wrapped compiler
Source§fn compiler_kind(&self) -> &CompilerKind
fn compiler_kind(&self) -> &CompilerKind
Obtain the compiler kind
Source§fn parse_args<S>(&mut self, args: &[S]) -> Result<&mut Self, Error>
fn parse_args<S>(&mut self, args: &[S]) -> Result<&mut Self, Error>
Set the wrapper arguments parsing a command line set of arguments
Source§fn args(&self) -> &CompilerArgsInfo
fn args(&self) -> &CompilerArgsInfo
Obtain the argument information
fn execute_command<S>( &self, args: &[S], mode: CompileMode, ) -> Result<Option<i32>, Error>
Source§fn build_target(&self) -> Result<Option<i32>, Error>
fn build_target(&self) -> Result<Option<i32>, Error>
Execute the given command and build the target
Source§fn generate_bitcode_files_and_embed_filepaths(
&self,
) -> Result<Option<i32>, Error>
fn generate_bitcode_files_and_embed_filepaths( &self, ) -> Result<Option<i32>, Error>
Generate bitcode files for all input files
Source§fn generate_bitcode_file<P>(
&self,
src_filepath: P,
bitcode_filepath: P,
) -> Result<Option<i32>, Error>
fn generate_bitcode_file<P>( &self, src_filepath: P, bitcode_filepath: P, ) -> Result<Option<i32>, Error>
Generate bitcode file for one input file
Source§fn build_object_file<P>(
&self,
src_filepath: P,
object_filepath: P,
) -> Result<Option<i32>, Error>
fn build_object_file<P>( &self, src_filepath: P, object_filepath: P, ) -> Result<Option<i32>, Error>
Execute the command and build the object file
fn link_object_files<P>( &self, object_filepaths: &[P], output_filepath: P, ) -> Result<Option<i32>, Error>
Auto Trait Implementations§
impl Freeze for ClangWrapper
impl RefUnwindSafe for ClangWrapper
impl Send for ClangWrapper
impl Sync for ClangWrapper
impl Unpin for ClangWrapper
impl UnwindSafe for ClangWrapper
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