Skip to main content

build_file

Function build_file 

Source
pub fn build_file(path: &Path, output: &Path) -> Result<Outcome<PathBuf>>
Expand description

Compile a file to a standalone native executable (nova build).

Emits a Cranelift object file next to output, links it with the nova-runtime static library through the platform linker, and removes the intermediate object on success.