From e54d16ef57ea237e3cac931c507492a239c11400 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 18 Feb 2026 13:52:57 +0500 Subject: [PATCH] build_osx - ensure we use `bison` from `brew` instead of the default one --- .github/workflows/build_osx.yml | 2 ++ nix/build-all.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/build_osx.yml b/.github/workflows/build_osx.yml index 056cf13763..eb680e54c1 100644 --- a/.github/workflows/build_osx.yml +++ b/.github/workflows/build_osx.yml @@ -40,6 +40,8 @@ jobs: # preinstalled: xz, cmake brew install git bison autoconf automake libffi findutils echo "$(brew --prefix findutils)/libexec/gnubin" >> $GITHUB_PATH + # Mac is using bison 2.5 by default, but we need 3.5+ for swig. + echo "$(brew --prefix bison)/bin" >> $GITHUB_PATH - name: Install aws cli run: | diff --git a/nix/build-all.py b/nix/build-all.py index ab9a568dba..22f3a73108 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -91,6 +91,9 @@ Used environment variables: # # # on OS X El Capitan with homebrew: # # $ brew install git bison autoconf automake libffi cmake # +# $ # `bison` shipped with Mac is too old for swig build, # +# $ # so we use `brew`. # +# $ export PATH=$(brew --prefix bison)/bin:$PATH # # # # on RHEL-related distros: # # $ dnf install git gcc gcc-c++ autoconf bison make cmake #