pub struct Build<'a> {
    pub halide_path: PathBuf,
    pub src: Vec<PathBuf>,
    pub output: PathBuf,
    pub cxx: Option<&'a str>,
    pub cxxflags: Option<&'a str>,
    pub ldflags: Option<&'a str>,
    pub build_args: Vec<&'a str>,
    pub run_args: Vec<&'a str>,
    pub keep: bool,
    pub generator: bool,
}
Expand description

Build stores the required context for building a Halide kernel

Fields

halide_path: PathBuf

Path to halide source

src: Vec<PathBuf>

Input files

output: PathBuf

Output file

cxx: Option<&'a str>

C++ compiler

cxxflags: Option<&'a str>

C++ compile time flags

ldflags: Option<&'a str>

C++ link time flags

build_args: Vec<&'a str>

Extra arguments to build step

run_args: Vec<&'a str>

Extra arguments to run step

keep: bool

Keep executable when finished running

generator: bool

Include Halide generator header

Implementations

Create a new build with the given halide path and output

Execute the build step

Execute the run step

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.