Skip to content

Apple Silicon #49

@momakes2

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

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