From 33f95e519ba6a0f65e4d17cee172368867112c5f Mon Sep 17 00:00:00 2001 From: zyc9012 Date: Sun, 1 Sep 2024 17:03:25 +0800 Subject: [PATCH] Log lexbor compilation --- ext/nokolexbor/extconf.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/ext/nokolexbor/extconf.rb b/ext/nokolexbor/extconf.rb index 269b81d..5079f2e 100644 --- a/ext/nokolexbor/extconf.rb +++ b/ext/nokolexbor/extconf.rb @@ -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 @@ -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