Skip to content

Commit

Permalink
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/compiler/crystal/macros/macros.cr
Original file line number Diff line number Diff line change
@@ -91,16 +91,9 @@ class Crystal::Program
compiled_macro_run = @compiled_macros_cache[filename] ||= macro_compile(filename)
compiled_file = compiled_macro_run.filename

command = String.build do |str|
str << compiled_file.inspect
args.each do |arg|
str << " "
str << arg.inspect
end
end

result = `#{command}`
{$?.success?, result}
io = IO::Memory.new
Process.run(compiled_file, args: args, shell: true, output: io)
{$?.success?, io.to_s}
end

record RequireWithTimestamp, filename : String, epoch : Int64 do

0 comments on commit bd09177

Please sign in to comment.