rustc_session::filesearch

Function get_or_default_sysroot

Source
pub fn get_or_default_sysroot() -> Result<PathBuf, String>
Expand description

This function checks if sysroot is found using env::args().next(), and if it is not found, finds sysroot from current rustc_driver dll.