Skip to content

Commit

Permalink
fix(build): fix build on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
mbroadst committed Aug 23, 2016
1 parent e699aba commit 775b114
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
11 changes: 9 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@
'src/storage_volume.cc',
'src/worker.cc'
],
"cflags": ["-std=c++11"],
"cflags": [
'-std=c++11',
'-stdlib=libc++'
],

'include_dirs' : [
"<!(node -e \"require('nan')\")"
],
Expand All @@ -36,7 +40,10 @@
}],
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_RTTI': 'YES'
'GCC_ENABLE_CPP_RTTI': 'YES',
'OTHER_CPLUSPLUSFLAGS' : [ '-std=c++11', '-stdlib=libc++' ],
'OTHER_LDFLAGS': [ '-stdlib=libc++' ],
'MACOSX_DEPLOYMENT_TARGET': "10.7"
}
}]
]
Expand Down
2 changes: 2 additions & 0 deletions src/domain.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#ifndef DOMAIN_H
#define DOMAIN_H

#include <functional>

#include "nlv_object.h"
#include "nlv_async_worker.h"
#include "worker_macros.h"
Expand Down
3 changes: 3 additions & 0 deletions src/worker.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include <functional>

#include "nlv_async_worker.h"

namespace NLV {
Expand Down Expand Up @@ -43,3 +45,4 @@ namespace NLV {
};
}
};

0 comments on commit 775b114

Please sign in to comment.