Skip to content

Commit

Permalink
bindings/node.js/binding.gyp: add OS conditions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Nov 22, 2020
1 parent 7fb5564 commit 0f91a05
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions bindings/node.js/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,22 @@
'sources': [
'blst_wrap.cpp',
'../../src/server.c',
'../../build/assembly.S'
],
'include_dirs': [ '..' ],
'cflags_cc': [ '-fexceptions' ],
'conditions': [
[ 'OS=="win"', {
'cflags_cc': [ '/EHsc' ],
'sources': [ '../../build/win64/*-x86_64.asm' ],
}, {
'cflags_cc': [ '-fexceptions' ],
'sources': [ '../../build/assembly.S' ],
}
],
[ 'OS=="linux"', {
'ldflags': [ '-Wl,-Bsymbolic' ],
}
],
],
},
]
}

0 comments on commit 0f91a05

Please sign in to comment.