diff options
author | Nobuyoshi Nakada <[email protected]> | 2021-01-15 09:32:35 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2021-01-15 09:37:28 +0900 |
commit | eb4319beafedc5ea8541d06e0db30309af96eced (patch) | |
tree | 5c4b6cdc6a90fd440e0f7037926f46f214ac6a3c /tool/extlibs.rb | |
parent | 0a039c5fbb247364961e0471582024751bc2be53 (diff) |
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.
Diffstat (limited to 'tool/extlibs.rb')
-rwxr-xr-x | tool/extlibs.rb | 2 |
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 |