From bc6f57ac15a99caaaadf1ca45a2c7a7cef85870d Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Sun, 3 Aug 2025 09:18:13 +0200 Subject: Revert to shell execution when invoking nm tool This reverts a change of commit b3598cf2a355497693bb66097edc156af3152e9b . On Windows on ARM64 with LLVM the "NM" tool is called with a parameter like so: ``` RbConfig::CONFIG["NM"] # => "llvm-nm --no-llvm-bc" ``` Therefore the command must be called with a shell string. --- win32/mkexports.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/win32/mkexports.rb b/win32/mkexports.rb index 97939cdd09..1a9f474be2 100755 --- a/win32/mkexports.rb +++ b/win32/mkexports.rb @@ -146,9 +146,7 @@ class Exports::Cygwin < Exports end def each_line(objs, &block) - IO.popen(%W[#{self.class.nm} --extern-only --defined-only] + objs) do |f| - f.each(&block) - end + IO.foreach("|#{self.class.nm} --extern-only --defined-only #{objs.join(' ')}", &block) end def each_export(objs) -- cgit v1.2.3