mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
Have --debug use .roc path for .ll and .bc
This commit is contained in:
parent
f6404d2ed5
commit
978b3a901d
2 changed files with 5 additions and 5 deletions
|
@ -111,7 +111,7 @@ pub fn build_file<'a>(
|
||||||
let code_gen_timing = program::gen_from_mono_module(
|
let code_gen_timing = program::gen_from_mono_module(
|
||||||
&arena,
|
&arena,
|
||||||
loaded,
|
loaded,
|
||||||
roc_file_path,
|
&roc_file_path,
|
||||||
Triple::host(),
|
Triple::host(),
|
||||||
&app_o_file,
|
&app_o_file,
|
||||||
opt_level,
|
opt_level,
|
||||||
|
|
|
@ -23,7 +23,7 @@ pub struct CodeGenTiming {
|
||||||
pub fn gen_from_mono_module(
|
pub fn gen_from_mono_module(
|
||||||
arena: &Bump,
|
arena: &Bump,
|
||||||
mut loaded: MonomorphizedModule,
|
mut loaded: MonomorphizedModule,
|
||||||
_file_path: PathBuf,
|
roc_file_path: &Path,
|
||||||
target: Triple,
|
target: Triple,
|
||||||
app_o_file: &Path,
|
app_o_file: &Path,
|
||||||
opt_level: OptLevel,
|
opt_level: OptLevel,
|
||||||
|
@ -92,7 +92,7 @@ pub fn gen_from_mono_module(
|
||||||
use inkwell::module::Linkage;
|
use inkwell::module::Linkage;
|
||||||
|
|
||||||
let app_ll_file = {
|
let app_ll_file = {
|
||||||
let mut temp = std::path::PathBuf::from(app_o_file);
|
let mut temp = PathBuf::from(roc_file_path);
|
||||||
temp.set_extension("ll");
|
temp.set_extension("ll");
|
||||||
|
|
||||||
temp
|
temp
|
||||||
|
@ -215,10 +215,10 @@ pub fn gen_from_mono_module(
|
||||||
if emit_debug_info {
|
if emit_debug_info {
|
||||||
module.strip_debug_info();
|
module.strip_debug_info();
|
||||||
|
|
||||||
let mut app_ll_dbg_file = std::path::PathBuf::from(app_o_file);
|
let mut app_ll_dbg_file = PathBuf::from(roc_file_path);
|
||||||
app_ll_dbg_file.set_extension("dbg.ll");
|
app_ll_dbg_file.set_extension("dbg.ll");
|
||||||
|
|
||||||
let mut app_bc_file = std::path::PathBuf::from(app_o_file);
|
let mut app_bc_file = PathBuf::from(roc_file_path);
|
||||||
app_bc_file.set_extension("bc");
|
app_bc_file.set_extension("bc");
|
||||||
|
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue