mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
Merge remote-tracking branch 'origin/main' into glue-getters-rtfeldman
This commit is contained in:
commit
0d4135c57a
95 changed files with 5408 additions and 1860 deletions
|
@ -792,7 +792,14 @@ pub fn rebuild_host(
|
|||
// For surgical linking, just copy the dynamically linked rust app.
|
||||
let mut exe_path = cargo_out_dir.join("host");
|
||||
exe_path.set_extension(executable_extension);
|
||||
std::fs::copy(&exe_path, &host_dest).unwrap();
|
||||
if let Err(e) = std::fs::copy(&exe_path, &host_dest) {
|
||||
panic!(
|
||||
"unable to copy {} => {}: {:?}\n\nIs the file used by another invocation of roc?",
|
||||
exe_path.display(),
|
||||
host_dest.display(),
|
||||
e,
|
||||
);
|
||||
}
|
||||
} else {
|
||||
// Cargo hosts depend on a c wrapper for the api. Compile host.c as well.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue