3 use super::build_sysroot;
5 use super::prepare::GitRepo;
6 use super::utils::{spawn_and_wait, CargoProject, Compiler};
7 use super::SysrootKind;
9 static ABI_CAFE_REPO: GitRepo =
10 GitRepo::github("Gankra", "abi-cafe", "4c6dc8c9c687e2b3a760ff2176ce236872b37212", "abi-cafe");
12 static ABI_CAFE: CargoProject = CargoProject::new(&ABI_CAFE_REPO.source_dir(), "abi_cafe");
16 sysroot_kind: SysrootKind,
19 bootstrap_host_compiler: &Compiler,
21 ABI_CAFE_REPO.fetch(dirs);
22 spawn_and_wait(ABI_CAFE.fetch("cargo", &bootstrap_host_compiler.rustc, dirs));
24 eprintln!("Building sysroot for abi-cafe");
25 build_sysroot::build_sysroot(
30 bootstrap_host_compiler,
31 bootstrap_host_compiler.triple.clone(),
34 eprintln!("Running abi-cafe");
36 let pairs = ["rustc_calls_cgclif", "cgclif_calls_rustc", "cgclif_calls_cc", "cc_calls_cgclif"];
38 let mut cmd = ABI_CAFE.run(bootstrap_host_compiler, dirs);
42 cmd.arg("--add-rustc-codegen-backend");
43 cmd.arg(format!("cgclif:{}", cg_clif_dylib.display()));
44 cmd.current_dir(ABI_CAFE.source_dir(dirs));