Set RUST_SUPPORTED_CODEGEN_BACKENDS=( llvm ) to workaround a bug in rustc_codegen_gcc when building the `ffi-polonius` crate.
Bug: https://github.com/rust-lang/rustc_codegen_gcc/issues/787 Signed-off-by: Sam James <[email protected]> --- eclass/toolchain.eclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 514d4def64af1..9648bd4767a0a 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -15,6 +15,8 @@ if [[ -z ${_TOOLCHAIN_ECLASS} ]]; then _TOOLCHAIN_ECLASS=1 RUST_OPTIONAL="1" +# https://github.com/rust-lang/rustc_codegen_gcc/issues/787 +RUST_SUPPORTED_CODEGEN_BACKENDS=( llvm ) case ${EAPI} in 8) ;; -- 2.51.2
