3 use super::build_sysroot;
5 use super::prepare::GitRepo;
6 use super::utils::{spawn_and_wait, CargoProject, Compiler};
7 use super::SysrootKind;
9 pub(crate) static ABI_CAFE_REPO: GitRepo =
10 GitRepo::github("Gankra", "abi-cafe", "4c6dc8c9c687e2b3a760ff2176ce236872b37212", "abi-cafe");
12 pub(crate) static ABI_CAFE: CargoProject =
13 CargoProject::new(&ABI_CAFE_REPO.source_dir(), "abi_cafe");
17 sysroot_kind: SysrootKind,
20 bootstrap_host_compiler: &Compiler,
22 eprintln!("Building sysroot for abi-cafe");
23 build_sysroot::build_sysroot(
28 bootstrap_host_compiler,
29 bootstrap_host_compiler.triple.clone(),
32 eprintln!("Running abi-cafe");
34 let pairs = ["rustc_calls_cgclif", "cgclif_calls_rustc", "cgclif_calls_cc", "cc_calls_cgclif"];
36 let mut cmd = ABI_CAFE.run(bootstrap_host_compiler, dirs);
40 cmd.arg("--add-rustc-codegen-backend");
41 cmd.arg(format!("cgclif:{}", cg_clif_dylib.display()));
42 cmd.current_dir(ABI_CAFE.source_dir(dirs));