Skip to content

Commit

Permalink
Log lexbor compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
zyc9012 committed Sep 1, 2024
1 parent 9ba703d commit 33f95e5
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions ext/nokolexbor/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ def which(cmd)
append_cflags("-DLEXBOR_STATIC")
append_cflags("-DLIBXML_STATIC")

def sys(cmd)
puts "-- #{cmd}"
unless ret = xsystem(cmd)
raise "ERROR: '#{cmd}' failed"
end
ret
end

# Thrown when we detect CMake is taking too long and we killed it
class CMakeTimeout < StandardError
end
Expand Down Expand Up @@ -138,7 +130,7 @@ def apply_patch(patch_file, chdir)

Dir.chdir("build") do
run_cmake(10 * 60, ".. -DCMAKE_INSTALL_PREFIX:PATH=#{INSTALL_DIR} #{lexbor_cmake_flags.join(' ')}")
sys("#{MAKE} install")
system("#{MAKE}", "install")
end
end

Expand Down

0 comments on commit 33f95e5

Please sign in to comment.