From ea34b179975efd3d470294cb2fca70c897ecec98 Mon Sep 17 00:00:00 2001 From: Kitaiti Makoto Date: Wed, 15 Apr 2026 13:19:55 +0900 Subject: [PATCH] Use IO.popen instead of Kernel.` for Windows compatibility --- bindings/ruby/ext/options.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/ruby/ext/options.rb b/bindings/ruby/ext/options.rb index ede80c06..0b2f9eb7 100644 --- a/bindings/ruby/ext/options.rb +++ b/bindings/ruby/ext/options.rb @@ -18,7 +18,7 @@ class Options output = nil Dir.chdir __dir__ do - output = `#{@cmake.shellescape} -S sources -B build -L` + output = IO.popen([@cmake, "-S", "sources", "-B", "build", "-L"]).read end @cmake_options = output.lines.drop_while {|line| line.chomp != "-- Cache values"}.drop(1) .filter_map {|line|