@alilly hm, but Rust has already been ported as this year's GSoC project?
Also this has nothing to do with LLVM internals (LLVM/Clang has already been ported too), and everything with the libc crate & kernel-specific parts of std. Like, you have to mirror 'struct stat' layout, which differs between systems, and so on.