Skip to content

Commit dc10c92

Browse files
larskanisnobu
authored andcommitted
Revert to shell execution when invoking nm tool
This reverts a change of commit b3598cf . 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.
1 parent deb0240 commit dc10c92

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

win32/mkexports.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ def exports(*)
146146
end
147147

148148
def each_line(objs, &block)
149-
IO.popen(%W[#{self.class.nm} --extern-only --defined-only] + objs) do |f|
150-
f.each(&block)
151-
end
149+
IO.foreach("|#{self.class.nm} --extern-only --defined-only #{objs.join(' ')}", &block)
152150
end
153151

154152
def each_export(objs)

0 commit comments

Comments
 (0)