env variable for writing out the obj file

This commit is contained in:
Folkert 2023-09-16 00:51:14 +02:00
parent 9d0fd50ecb
commit 821cc0cfd8
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C

View file

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