Skip to content

Commit

Permalink
[Truffle] Show command if compilation fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Nov 11, 2016
1 parent 5f4dfa8 commit 7564bf2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/ruby/optional/capi/spec_helper.rb
Expand Up @@ -110,8 +110,9 @@ def compile_extension_jruby_truffle(name)
f.puts "out: #{output_file}"
end

system "#{RbConfig::CONFIG['bindir']}/../tool/jt.rb", 'cextc', extension_path
raise "Compilation of #{extension_path} failed: #{$?}" unless $?.success?
command = ["#{RbConfig::CONFIG['bindir']}/../tool/jt.rb", 'cextc', extension_path]
system(*command)
raise "Compilation of #{extension_path} failed: #{$?}\n#{command.join(' ')}" unless $?.success?

output_file
ensure
Expand Down

0 comments on commit 7564bf2

Please sign in to comment.