From a3530c02e8260106f87d464e5cb398dcb2819460 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Thu, 1 Dec 2022 22:28:59 +0000 Subject: [PATCH] feat(patch): add support for experimental poll patch from emacs-plus for 29.x --- build-emacs-for-macos | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build-emacs-for-macos b/build-emacs-for-macos index b4f5d78..eb9dfb0 100755 --- a/build-emacs-for-macos +++ b/build-emacs-for-macos @@ -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.' \