Skip to content
Merged
Changes from all commits
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
5 changes: 5 additions & 0 deletions tooling/nargo_cli/src/cli/info_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ impl WorkspaceCommand for InfoCommand {
}

pub(crate) fn run(mut args: InfoCommand, workspace: Workspace) -> Result<(), CliError> {
if args.json {
// In order to have a machine readable output, we cannot allow the program to print arbitrary data to stdout.
args.compile_options.disable_comptime_printing = true;
}

if args.profile_execution {
// Execution profiling is only relevant with the Brillig VM
// as a constrained circuit should have totally flattened control flow (e.g. loops and if statements).
Expand Down
Loading