We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5ae9bcc + 1da6d82 commit d9f6509Copy full SHA for d9f6509
spec/ffi/fixtures/compile.rb
@@ -48,15 +48,12 @@ module TestLibrary
48
def self.compile_library(path, lib)
49
dir = File.expand_path(path, File.dirname(__FILE__))
50
lib = "#{dir}/#{lib}"
51
- unless File.exist?(lib)
52
- output = nil
53
- FileUtils.cd(dir) do
54
- make = system('which gmake >/dev/null') ? 'gmake' : 'make'
55
- output = system(*%{#{make} CPU=#{CPU} OS=#{OS}}.tap{|x| puts x.inspect})
56
- end
57
58
- unless $?.success?
59
- puts "ERROR:\n#{output}"
+ FileUtils.cd(dir) do
+ make = system('which gmake >/dev/null') ? 'gmake' : 'make'
+
+ unless system(*%{#{make} CPU=#{CPU} OS=#{OS}}.tap{ |cmd| puts cmd.inspect })
+ puts "ERROR: #{$?}"
60
raise "Unable to compile #{lib.inspect}"
61
end
62
0 commit comments