pub fn cross_kernel(target: Triple, opts: &LinkOptions) -> Option<Kernel>Expand description
The kernel headers that go with cross_sysroot, for the targets that have any.
The same three conditions, asked through the same function, because the two halves of one
target’s system headers have to be decided together or a compile could read glibc’s sys/stat.h
against this machine’s asm/stat.h. A None here on a Linux target where the sysroot is Some
means only one thing, which is that the cache has no kernel tree for that architecture, and the
directory is still named for the reason crate::library::header_dirs gives.
Not under the sysroot, because linux/ and asm-generic/ are the same nine megabytes for every
target that shares an architecture, and a copy per target is eight copies of one thing.