disable some debugging stuff

This commit is contained in:
Folkert 2023-09-15 23:10:43 +02:00
parent ae296a92b7
commit f30b0bdf68
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 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");