Skip to main content

build_env

Function build_env 

Source
pub fn build_env(libtorch: Option<&(PathBuf, String)>) -> Vec<(String, String)>
Expand description

The environment a build recipe gets: the same names an fdl.yml commands.run line already relies on, so a recipe that works there works here.

What it deliberately does NOT contain is a feature flag fdl chose. cuda and rocm are this repo’s feature names; a user’s crate pins its flodl features in its own manifest and may expose neither, so the vendor is handed over as $FDL_GPU_FEATURE for a recipe to use or ignore.