Struct risc0_build_kernel::KernelBuild
source · pub struct KernelBuild { /* private fields */ }
Implementations§
source§impl KernelBuild
impl KernelBuild
pub fn new(kernel_type: KernelType) -> Self
sourcepub fn include<P: AsRef<Path>>(&mut self, dir: P) -> &mut KernelBuild
pub fn include<P: AsRef<Path>>(&mut self, dir: P) -> &mut KernelBuild
Add a directory to the -I
or include path for headers
sourcepub fn flag(&mut self, flag: &str) -> &mut KernelBuild
pub fn flag(&mut self, flag: &str) -> &mut KernelBuild
Add an arbitrary flag to the invocation of the compiler
sourcepub fn file<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
pub fn file<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
Add a file which will be compiled
sourcepub fn files<P>(&mut self, p: P) -> &mut KernelBuildwhere
P: IntoIterator,
P::Item: AsRef<Path>,
pub fn files<P>(&mut self, p: P) -> &mut KernelBuildwhere P: IntoIterator, P::Item: AsRef<Path>,
Add files which will be compiled
sourcepub fn dep<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
pub fn dep<P: AsRef<Path>>(&mut self, p: P) -> &mut KernelBuild
Add a dependency
sourcepub fn deps<P>(&mut self, p: P) -> &mut KernelBuildwhere
P: IntoIterator,
P::Item: AsRef<Path>,
pub fn deps<P>(&mut self, p: P) -> &mut KernelBuildwhere P: IntoIterator, P::Item: AsRef<Path>,
Add dependencies