From d857c7a1ff21161082ccac403044e66c3222b3ff Mon Sep 17 00:00:00 2001 From: Mark Adamcin Date: Fri, 23 Feb 2024 16:47:00 -0800 Subject: [PATCH] changes to get macos prebuild to pass on arm64 local machine --- .github/workflows/prebuild.yaml | 2 +- prebuild/macOS/binding.gyp | 14 ++++++++++---- prebuild/macOS/preinstall.sh | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/prebuild.yaml b/.github/workflows/prebuild.yaml index 33d67e0ed..fbf00d03b 100644 --- a/.github/workflows/prebuild.yaml +++ b/.github/workflows/prebuild.yaml @@ -51,7 +51,7 @@ jobs: npm install nan . prebuild/macOS/preinstall.sh cp prebuild/macOS/binding.gyp binding.gyp - node-gyp rebuild -j 2 --arch=${{ runner.arch }} + node-gyp rebuild -j 2 --arch=${{ matrix.os.arch }} . prebuild/macOS/bundle.sh - name: Test binary diff --git a/prebuild/macOS/binding.gyp b/prebuild/macOS/binding.gyp index 00ae2ccbc..6f0940abe 100644 --- a/prebuild/macOS/binding.gyp +++ b/prebuild/macOS/binding.gyp @@ -23,7 +23,9 @@ 'defines': [ 'HAVE_GIF', 'HAVE_JPEG', - 'HAVE_RSVG' + 'HAVE_RSVG', + 'NAPI_DISABLE_CPP_EXCEPTIONS', + 'NODE_ADDON_API_ENABLE_MAYBE' ], 'libraries': [ '