safe generated object file

This commit is contained in:
Folkert 2023-09-15 17:45:43 +02:00
parent 63ff495763
commit cfe21a4894
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

@ -216,7 +216,7 @@ pub fn helper(
roc_bitcode::host_tempfile().expect("failed to write host builtins object to tempfile");
// TODO make this an environment variable
if false {
if true {
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();