mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Merge remote-tracking branch 'origin/main' into roc-dev-inline-expects
This commit is contained in:
commit
92cc120c7f
150 changed files with 3480 additions and 2605 deletions
|
@ -342,11 +342,11 @@ fn annotate_with_debug_info<'ctx>(
|
|||
let app_bc_file = "/tmp/roc-debugir.bc";
|
||||
|
||||
// write the ll code to a file, so we can modify it
|
||||
module.print_to_file(&app_ll_file).unwrap();
|
||||
module.print_to_file(app_ll_file).unwrap();
|
||||
|
||||
// run the debugir https://github.com/vaivaswatha/debugir tool
|
||||
match Command::new("debugir")
|
||||
.args(&["-instnamer", app_ll_file])
|
||||
.args(["-instnamer", app_ll_file])
|
||||
.output()
|
||||
{
|
||||
Ok(_) => {}
|
||||
|
@ -362,11 +362,11 @@ fn annotate_with_debug_info<'ctx>(
|
|||
}
|
||||
|
||||
Command::new("llvm-as")
|
||||
.args(&[app_dbg_ll_file, "-o", app_bc_file])
|
||||
.args([app_dbg_ll_file, "-o", app_bc_file])
|
||||
.output()
|
||||
.unwrap();
|
||||
|
||||
inkwell::module::Module::parse_bitcode_from_path(&app_bc_file, context).unwrap()
|
||||
inkwell::module::Module::parse_bitcode_from_path(app_bc_file, context).unwrap()
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
|
@ -460,7 +460,7 @@ fn llvm_module_to_wasm_file(
|
|||
|
||||
let output = zig()
|
||||
.current_dir(dir_path)
|
||||
.args(&[
|
||||
.args([
|
||||
"wasm-ld",
|
||||
concat!(env!("OUT_DIR"), "/wasm_test_platform.wasm"),
|
||||
test_a_path.to_str().unwrap(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue