Skip to content

Apple Silicon #49

Description

@momakes2

Version
2.1
Short overview
Release fat binaries for macOS to work on Apple Silicon

Steps to reproduce error
M1 Macs fail at running the built version.

Fix
Build using both archs:

cmake-js rebuild --CDNODE_ARCH="arm64;x86_64" --CDCMAKE_OSX_ARCHITECTURES="arm64;x86_64"

And it'll result in both binaries being included:

lipo -info build/Release/libnut.node
# Architectures in the fat file: build/Release/libnut.node are: x86_64 arm64

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions