feat(patch): add support for experimental poll patch from emacs-plus for 29.x

This commit is contained in:
2022-12-01 22:28:59 +00:00
parent 138ac74ba5
commit a3530c02e8

View File

@@ -695,6 +695,15 @@ class Build
end
end
if effective_version == 'emacs-29'
if options[:poll]
p << {
url: 'https://github.com/d12frosted/homebrew-emacs-plus/raw/master/' \
"patches/#{effective_version}/poll.patch"
}
end
end
if %w[emacs-28 emacs-29].include?(effective_version)
if options[:posix_spawn]
p << {
@@ -1342,6 +1351,13 @@ if __FILE__ == $PROGRAM_NAME
cli_options[:no_frame_refocus] = true
end
opts.on('--[no-]poll',
'Enable/disable experimental use of poll() instead of select() ' \
'to support > 1024 file descriptors ' \
'(default: disabled)') do |v|
cli_options[:poll] = v
end
opts.on('--[no-]github-auth',
'Make authenticated GitHub API requests if GITHUB_TOKEN ' \
'environment variable is set.' \