Browse Source

Add node.installPrefix

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
605b7e9763
  1. 1
      src/node.cc
  2. 1
      src/node_version.h.in

1
src/node.cc

@ -352,6 +352,7 @@ static Local<Object> Load(int argc, char *argv[]) {
global_obj->Set(String::NewSymbol("node"), node_obj);
node_obj->Set(String::NewSymbol("version"), String::New(NODE_VERSION));
node_obj->Set(String::NewSymbol("installPrefix"), String::New(NODE_PREFIX));
int i, j;
Local<Array> arguments = Array::New(argc - dash_dash_index + 1);

1
src/node_version.h.in

@ -7,5 +7,6 @@
# define NODE_VERSION "@VERSION@ (debug)"
#endif
#define NODE_CFLAGS "@CCFLAGS@ @CPPFLAGS@ -I@PREFIX@/include/node"
#define NODE_PREFIX "@PREFIX@"
#endif /* node_version_h */

Loading…
Cancel
Save