make ROC_DEV_WRITE_OBJ work in more cases

This commit is contained in:
Folkert 2024-01-27 17:46:19 +01:00
parent 076fafe02f
commit 919a51137a
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
2 changed files with 22 additions and 6 deletions

View file

@ -215,12 +215,6 @@ pub fn helper(
let builtins_host_tempfile =
roc_bitcode::host_tempfile().expect("failed to write host builtins object to tempfile");
if std::env::var("ROC_DEV_WRITE_OBJ").is_ok() {
let file_path = std::env::temp_dir().join("app.o");
println!("gen-test object file written to {}", file_path.display());
std::fs::copy(&app_o_file, file_path).unwrap();
}
let (mut child, dylib_path) = link(
&target,
app_o_file.clone(),