mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
disable some debugging stuff
This commit is contained in:
parent
ae296a92b7
commit
f30b0bdf68
1 changed files with 3 additions and 1 deletions
|
@ -216,7 +216,7 @@ pub fn helper(
|
||||||
roc_bitcode::host_tempfile().expect("failed to write host builtins object to tempfile");
|
roc_bitcode::host_tempfile().expect("failed to write host builtins object to tempfile");
|
||||||
|
|
||||||
// TODO make this an environment variable
|
// TODO make this an environment variable
|
||||||
if true {
|
if false {
|
||||||
let file_path = std::env::temp_dir().join("app.o");
|
let file_path = std::env::temp_dir().join("app.o");
|
||||||
println!("gen-test object file written to {}", file_path.display());
|
println!("gen-test object file written to {}", file_path.display());
|
||||||
std::fs::copy(&app_o_file, file_path).unwrap();
|
std::fs::copy(&app_o_file, file_path).unwrap();
|
||||||
|
@ -364,6 +364,8 @@ macro_rules! assert_evals_to {
|
||||||
let (_main_fn_name, errors, lib) =
|
let (_main_fn_name, errors, lib) =
|
||||||
$crate::helpers::dev::helper(&arena, $src, $leak, $lazy_literals);
|
$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 result = if cfg!(target_arch = "aarch64") {
|
||||||
let typ = std::any::type_name::<$ty>();
|
let typ = std::any::type_name::<$ty>();
|
||||||
println!("calling the `{_main_fn_name}: {typ}` function");
|
println!("calling the `{_main_fn_name}: {typ}` function");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue