File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,16 @@ else
126126 ulimit -a
127127 ulimit -n 4096
128128 ulimit -a
129-
129+
130+ if [[ " ${INTEL} " == " false" ]]; then
131+ # Ensure gmp exists for native gems (bigdecimal link step uses -lgmp)
132+ brew install gmp
133+
134+ # Help the portable ruby toolchain find ARM Homebrew libs/headers
135+ export CPPFLAGS=" ${CPPFLAGS:- } -I/opt/homebrew/include"
136+ export LDFLAGS=" ${LDFLAGS:- } -L/opt/homebrew/lib"
137+ export PKG_CONFIG_PATH=" ${PKG_CONFIG_PATH:- } :/opt/homebrew/lib/pkgconfig"
138+ fi
130139 elif [ " ${ImageOS} " == " ubuntu22" ]; then
131140 echo " Setting up Ubuntu for unit tests and Rubocop"
132141 # install pipe viewer to throttle printing logs to screen (not a big deal in linux, but it is in osx)
You can’t perform that action at this time.
0 commit comments