Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix can't run on node v0.6.x

  • Loading branch information...
commit cac880436afa9a960aebc7fe5a0f0f94a9aad295 1 parent 7abf64f
@bunnyyiu authored
Showing with 3 additions and 1 deletion.
  1. +1 −1  package.json
  2. +2 −0  wscript
View
2  package.json
@@ -8,7 +8,7 @@
{ "name": "Seth Fitzsimmons", "email": "seth@mojodna.net" },
{ "name": "Wade Simmons", "email": "wade@wades.im" }
],
- "main": "build/default/hashlib",
+ "main": "build/Release/hashlib",
@bunnyyiu Owner

in node v0.6.x, the complied output will default to build/Release. tested with node 0.6.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
"directories": { "lib": "./build/Release" },
"engines": { "node": ">= 0.5.5" }
}
View
2  wscript
@@ -12,6 +12,8 @@ def configure(conf):
conf.check_tool("node_addon")
conf.env.append_value('CPPFLAGS', ['-Du_int32_t=uint32_t', '-Du_int16_t=uint16_t'])
conf.env.append_value('CCFLAGS', ['-O3'])
+ conf.env.set_variant('Release')
@bunnyyiu Owner

this make the compiled output go to .\build\Release on node version <0.6.x , tested with node 0.4.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+
def build(bld):
libhash = bld.new_task_gen("cc", "shlib")
Please sign in to comment.
Something went wrong with that request. Please try again.