mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
deb0240ea0
commit
dc10c92749
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue