Skip to content

Commit

Permalink
Fix some verbosity stuff and PietCC compiling when -i is supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
pwang00 committed May 2, 2023
1 parent 5b2f5de commit 8faca72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion interpreter/src/interpreter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ impl<'a> Interpreter<'a> {

pub fn run(&mut self) -> ExecutionResult {
match self.settings.verbosity {
Verbosity::Normal | Verbosity::Verbose => match env::consts::OS {
Verbosity::Verbose => match env::consts::OS {
"linux" => {
println!("\x1B[1;37mpietcc:\x1B[0m \x1B[1;96minfo: \x1B[0mrunning with codel width {} (size of {})",
self.codel_width, self.codel_width.pow(2))
Expand Down
1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ fn main() -> Result<(), Error> {
interp_settings.codel_settings = codel_settings;
interpreter = Interpreter::new(&program, interp_settings);
println!("\n{}", interpreter.run());
exit(0);
}

if let Some(output_fname) = matches.value_of("out") {
Expand Down

0 comments on commit 8faca72

Please sign in to comment.