From f505a1a057286a63e71b831c1d3487a3c22e5fb5 Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Wed, 28 Aug 2024 13:20:48 +0200 Subject: [PATCH] Fix node-gyp building on MacOS --- .github/workflows/ci.yml | 2 +- binding.gyp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 502fa3d..61a0326 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] + os: [ubuntu-latest, macos-12] node-version: - 18.x - 20.x diff --git a/binding.gyp b/binding.gyp index 3003f32..1a00c2e 100644 --- a/binding.gyp +++ b/binding.gyp @@ -45,6 +45,7 @@ "GCC_ENABLE_CPP_RTTI": "YES", "GCC_ENABLE_CPP_EXCEPTIONS": "YES", "OTHER_CFLAGS": [ + "-stdlib=libc++", "-Wno-register" ],