Skip to content

Commit

Permalink
statically link stdc++
Browse files Browse the repository at this point in the history
  • Loading branch information
abbr committed Mar 30, 2022
1 parent 50cc7da commit 0c91d88
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 18 deletions.
47 changes: 33 additions & 14 deletions binding.gyp
Original file line number Diff line number Diff line change
@@ -1,20 +1,39 @@
{
"targets": [{
"target_name": "deasync",
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"xcode_settings": { "GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"targets": [
{
"target_name": "deasync",
"cflags!": [
"-fno-exceptions"
],
"cflags_cc!": [
"-fno-exceptions"
],
"xcode_settings": {
"GCC_ENABLE_CPP_EXCEPTIONS": "YES",
"CLANG_CXX_LIBRARY": "libc++",
"MACOSX_DEPLOYMENT_TARGET": "10.7",
"MACOSX_DEPLOYMENT_TARGET": "10.7"
},
"msvs_settings": {
"VCCLCompilerTool": { "ExceptionHandling": 1 },
"VCCLCompilerTool": {
"ExceptionHandling": 1
}
},
"sources": [
"src/deasync.cc"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")",
]
}]
"sources": [
"src/deasync.cc"
],
"include_dirs": [
"<!@(node -p \"require('node-addon-api').include\")"
],
"conditions": [
[
"OS=='linux'",
{
"ldflags": [
"-static-libstdc++"
]
}
]
]
}
]
}
9 changes: 6 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "deasync",
"version": "0.1.24",
"version": "0.1.25",
"description": "Turns async function into sync via JavaScript wrapper of Node event loop",
"main": "index.js",
"author": "Vladimir Kurchatkin <[email protected]>",
Expand Down

0 comments on commit 0c91d88

Please sign in to comment.