Skip to content

Commit

Permalink
Generate binary addon for SSE2 too
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffesquivels authored and styppo committed Aug 15, 2019
1 parent d48f899 commit 8ddcbef
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
40 changes: 40 additions & 0 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,46 @@
]
}
},
{
"target_name": "nimiq_node_sse2",
"sources": [
"src/native/argon2.c",
"src/native/blake2/blake2b.c",
"src/native/core.c",
"src/native/encoding.c",
"src/native/nimiq_native.c",
"src/native/ref.c",
"src/native/sha256.c",
"src/native/ed25519/collective.c",
"src/native/ed25519/fe.c",
"src/native/ed25519/ge.c",
"src/native/ed25519/keypair.c",
"src/native/ed25519/memory.c",
"src/native/ed25519/sc.c",
"src/native/ed25519/sha512.c",
"src/native/ed25519/sign.c",
"src/native/ed25519/verify.c",
"src/native/nimiq_node.cc"
],
"defines": [
"ARGON2_NO_THREADS"
],
"include_dirs": [
"<!(node -e \"require('nan')\")",
"src/native"
],
"cflags_c": [
"-std=c99",
"-msse",
"-msse2",
],
"xcode_settings": {
"OTHER_CFLAGS": [
"-msse",
"-msse2",
]
}
},
{
"target_name": "nimiq_node_avx",
"sources": [
Expand Down
2 changes: 1 addition & 1 deletion doc/linux-packaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Note: creating deb packages only has been tested extensively on Ubuntu and Debia
#### Fedora/CentOS/RHEL (RPM package format)

1. Make sure you have `rpm-build` installed (otherwise, install it with `yum` or `dnf`).
2. Run `PACKAGING=1 yarn `
2. Run `PACKAGING=1 yarn`
3. Then run `yarn run build-rpm`.
4. The RPM package will be located in the `dist/` directory.

Expand Down
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,7 @@ const RELEASE_LIB = [

const RELEASE_ADDONS = [
'build/Release/nimiq_node_compat.node',
'build/Release/nimiq_node_sse2.node',
'build/Release/nimiq_node_avx.node',
'build/Release/nimiq_node_avx2.node',
'build/Release/nimiq_node_avx512f.node'
Expand Down

0 comments on commit 8ddcbef

Please sign in to comment.