Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Commit 6e86102

Browse files
committed
support debug build
1 parent 161373c commit 6e86102

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

Diff for: binding.gyp

+3-7
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,9 @@
1414
}
1515
}],
1616
['OS=="win"', {
17-
'configurations': {
18-
'Release': {
19-
'msvs_settings': {
20-
'VCCLCompilerTool': {
21-
'ExceptionHandling': 1
22-
}
23-
}
17+
'msvs_settings': {
18+
'VCCLCompilerTool': {
19+
'ExceptionHandling': 1
2420
}
2521
}
2622
}]

Diff for: ext/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ try {
77
} else if(process.platform == "win32" && process.arch == "ia32") {
88
bson = require('./win32/ia32/bson');
99
} else {
10-
bson = require('../build/Release/bson');
10+
bson = require('bindings')('bson.node');
1111
}
1212
} catch(err) {
1313
// Attempt to load the release bson version
1414
try {
15-
bson = require('../build/Release/bson');
15+
bson = require('bindings')('bson.node');
1616
} catch (err) {
1717
throw new Error("js-bson: Failed to load c++ bson extension, using pure JS version");
1818
}

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"url": "https://github.com/christkv/bson-ext/issues"
1919
},
2020
"dependencies": {
21+
"bindings": "^1.2.1",
2122
"nan": "~2.0.9",
2223
"node-pre-gyp": "https://github.com/mongodb-js/node-pre-gyp/archive/v0.6.5-appveyor.tar.gz"
2324
},

0 commit comments

Comments
 (0)