Revert to shell execution when invoking nm tool

This reverts a change of commit b3598cf2a3 .
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.
This commit is contained in:
Lars Kanis 2025-08-03 09:18:13 +02:00 committed by Nobuyoshi Nakada
parent deb0240ea0
commit dc10c92749

View file

@ -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)