From f30b0bdf68e959e75fe1406a26efbe7f8b75e111 Mon Sep 17 00:00:00 2001 From: Folkert Date: Fri, 15 Sep 2023 23:10:43 +0200 Subject: [PATCH] disable some debugging stuff --- crates/compiler/test_gen/src/helpers/dev.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/compiler/test_gen/src/helpers/dev.rs b/crates/compiler/test_gen/src/helpers/dev.rs index ffbc85b068..b4961dee5a 100644 --- a/crates/compiler/test_gen/src/helpers/dev.rs +++ b/crates/compiler/test_gen/src/helpers/dev.rs @@ -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 true { + if false { 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(); @@ -364,6 +364,8 @@ macro_rules! assert_evals_to { let (_main_fn_name, errors, lib) = $crate::helpers::dev::helper(&arena, $src, $leak, $lazy_literals); + // NOTE: on aarch64 our infrastructure for roc_panic does not work yet. Therefore we call + // just the main roc function which does not do anything to catch/report panics. let result = if cfg!(target_arch = "aarch64") { let typ = std::any::type_name::<$ty>(); println!("calling the `{_main_fn_name}: {typ}` function");