See https://github.com/rust-lang/rust/pull/53031#issuecomment-413806821 > * compile you're C code with clang 7 and `-flto=thin`, > * make sure that you are using LLD as your linker (e.g. with `-Clinker=clang -Clink-arg=-fuse-ld=lld`, > * add `-Zcross-lang-lto -Ccodegen-units=1` to your `RUSTFLAGS`.