Skip to content

Commit

Permalink
Modified Mac build fix for new binding.gyp structure
Browse files Browse the repository at this point in the history
  • Loading branch information
murgatroid99 committed Oct 22, 2015
1 parent 403caaf commit 6ffdb94
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 20 deletions.
30 changes: 20 additions & 10 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,6 @@
]
]
}],
['OS=="mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9',
'OTHER_CFLAGS': [
'-fno-strict-aliasing',
'-std=c++11',
'-stdlib=libc++'
]
}
}]
]
},
'targets': [
Expand Down Expand Up @@ -134,6 +124,16 @@
'src/core/support/time_win32.c',
'src/core/support/tls_pthread.c',
],
"conditions": [
['OS == "mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9',
'OTHER_CFLAGS': [
'-stdlib=libc++'
]
}
}]
],
},
{
'target_name': 'grpc',
Expand Down Expand Up @@ -292,6 +292,16 @@
'src/core/census/operation.c',
'src/core/census/tracing.c',
],
"conditions": [
['OS == "mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9',
'OTHER_CFLAGS': [
'-stdlib=libc++'
]
}
}]
],
},
{
'include_dirs': [
Expand Down
20 changes: 10 additions & 10 deletions templates/binding.gyp.template
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,6 @@
]
]
}],
['OS=="mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9',
'OTHER_CFLAGS': [
'-fno-strict-aliasing',
'-std=c++11',
'-stdlib=libc++'
]
}
}]
]
},
'targets': [
Expand All @@ -104,6 +94,16 @@
'${source}',
% endfor
],
"conditions": [
['OS == "mac"', {
'xcode_settings': {
'MACOSX_DEPLOYMENT_TARGET': '10.9',
'OTHER_CFLAGS': [
'-stdlib=libc++'
]
}
}]
],
},
% endif
% endfor
Expand Down

0 comments on commit 6ffdb94

Please sign in to comment.