Skip to main content

runtime_dirs

Function runtime_dirs 

Source
pub fn runtime_dirs(target: Triple, sysroot: Option<&Path>) -> Vec<PathBuf>
Expand description

Where a gcc on this machine keeps crtbegin.o, crtend.o and libgcc.a, newest first.

This is not where the C library’s files are. A distribution puts them under a directory named for the gcc version, and there may be several, so the answer is every one that exists with the highest version in front. Newest first because a newer libgcc is a superset of an older one and because that is the one the C library on the same machine was built against.