Skip to content

Commit

Permalink
[build] Build a universal binary on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
lpinca committed Sep 26, 2021
1 parent 9a253c6 commit c81c7da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
{
'target_name': 'validation',
'sources': ['src/validation.c'],
'cflags': ['-std=c99']
'cflags': ['-std=c99'],
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.7',
'OTHER_CFLAGS': ['-arch x86_64', '-arch arm64'],
'OTHER_LDFLAGS': ['-arch x86_64', '-arch arm64']
}
}
]
}

0 comments on commit c81c7da

Please sign in to comment.