Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 27 additions & 26 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -25,33 +25,8 @@
# Necessary for node v4.x
"xcode_settings": {
"OTHER_CPLUSPLUSFLAGS" : [ "-std=c++11", "-stdlib=libc++" ],
"OTHER_LDFLAGS": [ "-stdlib=libc++" ],
"OTHER_LDFLAGS": [ "-stdlib=libc++","-Wl,-undefined,dynamic_lookup" ],
},

"conditions": [
[ "lldb_lib_dir == ''", {
"variables": {
"mac_shared_frameworks": "/Applications/Xcode.app/Contents/SharedFrameworks",
},
"xcode_settings": {
"OTHER_LDFLAGS": [
"-F<(mac_shared_frameworks)",
"-Wl,-rpath,<(mac_shared_frameworks)",
"-framework LLDB",
],
},
},
# lldb_lib_dir != ""
{
"xcode_settings": {
"OTHER_LDFLAGS": [
"-Wl,-rpath,<(lldb_lib_dir)",
"-L<(lldb_lib_dir)",
"-l<(lldb_lib)",
],
},
}],
],
}],
[ "OS == 'win'", {
"sources": [
Expand Down Expand Up @@ -114,6 +89,32 @@
"cflags!": [ "-fno-exceptions" ],
"cflags_cc!": [ "-fno-exceptions" ],
"conditions": [
[ "OS == 'mac'", {
"conditions": [
[ "lldb_lib_dir == ''", {
"variables": {
"mac_shared_frameworks": "/Applications/Xcode.app/Contents/SharedFrameworks",
},
"xcode_settings": {
"OTHER_LDFLAGS": [
"-F<(mac_shared_frameworks)",
"-Wl,-rpath,<(mac_shared_frameworks)",
"-framework LLDB",
],
},
},
# lldb_lib_dir != ""
{
"xcode_settings": {
"OTHER_LDFLAGS": [
"-Wl,-rpath,<(lldb_lib_dir)",
"-L<(lldb_lib_dir)",
"-l<(lldb_lib)",
],
},
}],
]
}],
[ "OS=='linux' or OS=='freebsd'", {
"conditions": [
# If we could not locate the lib dir, then we will have to search
Expand Down