mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 12:14:51 +00:00
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.
This commit is contained in:
parent
deb0240ea0
commit
dc10c92749
@ -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…
x
Reference in New Issue
Block a user