Skip to content

Loading…

fix can't run in node v0.6.x #27

Merged
merged 1 commit into from

2 participants

@bunnyyiu

make the complied stuff go to /build/Release in node v0.4.x and 0.6.x.
look for the main in /build/Release/hashlib.

@bunnyyiu

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

@bunnyyiu

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

@brainfucker brainfucker merged commit b9f61ef into brainfucker:master
@brainfucker
Owner

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 20, 2011
  1. @bunnyyiu

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

    bunnyyiu committed
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",
"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')
+
def build(bld):
libhash = bld.new_task_gen("cc", "shlib")
Something went wrong with that request. Please try again.