Skip to content

Commit 605b7e9

Browse files
committed
Add node.installPrefix
1 parent 6f31a37 commit 605b7e9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/node.cc

+1
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ static Local<Object> Load(int argc, char *argv[]) {
352352
global_obj->Set(String::NewSymbol("node"), node_obj);
353353

354354
node_obj->Set(String::NewSymbol("version"), String::New(NODE_VERSION));
355+
node_obj->Set(String::NewSymbol("installPrefix"), String::New(NODE_PREFIX));
355356

356357
int i, j;
357358
Local<Array> arguments = Array::New(argc - dash_dash_index + 1);

src/node_version.h.in

+1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
# define NODE_VERSION "@VERSION@ (debug)"
88
#endif
99
#define NODE_CFLAGS "@CCFLAGS@ @CPPFLAGS@ -I@PREFIX@/include/node"
10+
#define NODE_PREFIX "@PREFIX@"
1011

1112
#endif /* node_version_h */

0 commit comments

Comments
 (0)