Skip to content

Commit

Permalink
delete precompiled file when debug is off
Browse files Browse the repository at this point in the history
  • Loading branch information
katsyoshi committed May 20, 2023
1 parent 0a08e24 commit 6afe0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vaporware/compiler/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def call_compiler(output: precompile, compiler: "gcc", compiler_options: ["-O0"]
compile_commands = [compiler, *compiler_options, "-o", name, output].compact
IO.popen(compile_commands).close

puts File.read(output) if debug
File.delete(output) unless debug
nil
end

Expand Down

0 comments on commit 6afe0d2

Please sign in to comment.