aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-15 09:32:35 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-15 09:37:28 +0900
commiteb4319beafedc5ea8541d06e0db30309af96eced (patch)
tree5c4b6cdc6a90fd440e0f7037926f46f214ac6a3c
parent0a039c5fbb247364961e0471582024751bc2be53 (diff)
downloadruby-eb4319beafedc5ea8541d06e0db30309af96eced.tar.gz
extlibs.rb: make patch command selectable [ci skip]
Some Windows ports fail an assertion on patch files with LF EOL code. MSys2 patch.exe 2.7.6 seems fine, at least.
-rwxr-xr-xtool/extlibs.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/extlibs.rb b/tool/extlibs.rb
index 8a9c5a8fd0..5e8628cb63 100755
--- a/tool/extlibs.rb
+++ b/tool/extlibs.rb
@@ -90,7 +90,7 @@ class ExtLibs
$stdout.puts "applying #{patch} under #{dest}"
$stdout.flush
end
- Process.wait(Process.spawn("patch", "-d", dest, "-i", patch, *args))
+ Process.wait(Process.spawn(ENV.fetch("PATCH", "patch"), "-d", dest, "-i", patch, *args))
$?.success? or raise "failed to patch #{patch}"
end