Skip to content

Commit

Permalink
Fix cc sysroot path and target for morello linux in bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis-revill committed Jan 15, 2024
1 parent 5d4dced commit f9b4e81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1088,8 +1088,9 @@ impl Build {
base.push(format!("--sysroot={}", sysroot));
}
if &*target.triple == "morello-unknown-linux-purecap" {
base.push("--target=aarch64-unknown-linux-musl_purecap".into());
let sysroot = match home_dir() {
Some(path) => path.as_path().join("cheri").join("output").join("musl-bin"),
Some(path) => path.as_path().join("morello").join("musl"),
None => Path::new("").to_path_buf(),
};
let sysroot = sysroot.into_os_string().into_string().unwrap();
Expand Down

0 comments on commit f9b4e81

Please sign in to comment.