Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion compiler/noirc_driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ pub struct CompileOptions {
#[arg(long, hide = true)]
pub show_ssa_pass: Vec<String>,

/// Do not emit source file locations when emitting debug information for the SSA IR to stdout.
/// By default, source file locations will be shown.
#[arg(long)]
pub no_ssa_locations: bool,

/// Only show the SSA and ACIR for the contract function with a given name.
#[arg(long, hide = true)]
pub show_contract_fn: Option<String>,
Expand Down Expand Up @@ -796,7 +801,11 @@ pub fn compile_no_check(
&context.file_manager,
)?
} else {
create_program(program, &ssa_evaluator_options, Some(&context.file_manager))?
create_program(
program,
&ssa_evaluator_options,
if options.no_ssa_locations { None } else { Some(&context.file_manager) },
)?
};

let abi = gen_abi(context, &main_function, return_visibility, error_types);
Expand Down
Loading