Browse Source

Replace --cflags with --vars

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
40e42e8107
  1. 8
      src/node.cc

8
src/node.cc

@ -1191,8 +1191,8 @@ static void PrintHelp() {
" without stopping the execution\n" " without stopping the execution\n"
" --debug-brk[=port] as above, but break in script.js and\n" " --debug-brk[=port] as above, but break in script.js and\n"
" wait for remote debugger to connect\n" " wait for remote debugger to connect\n"
" --cflags print pre-processor and compiler flags\n"
" --v8-options print v8 command line options\n" " --v8-options print v8 command line options\n"
" --vars print various compiled-in variables\n"
"\n" "\n"
"Enviromental variables:\n" "Enviromental variables:\n"
"NODE_PATH ':'-separated list of directories\n" "NODE_PATH ':'-separated list of directories\n"
@ -1216,8 +1216,10 @@ static void ParseArgs(int *argc, char **argv) {
} else if (strcmp(arg, "--version") == 0 || strcmp(arg, "-v") == 0) { } else if (strcmp(arg, "--version") == 0 || strcmp(arg, "-v") == 0) {
printf("%s\n", NODE_VERSION); printf("%s\n", NODE_VERSION);
exit(0); exit(0);
} else if (strcmp(arg, "--cflags") == 0) { } else if (strcmp(arg, "--vars") == 0) {
printf("%s\n", NODE_CFLAGS); printf("NODE_PREFIX: %s\n", NODE_PREFIX);
printf("NODE_LIBRARIES_PREFIX: %s/%s\n", NODE_PREFIX, "lib/node/libraries");
printf("NODE_CFLAGS: %s\n", NODE_CFLAGS);
exit(0); exit(0);
} else if (strcmp(arg, "--help") == 0 || strcmp(arg, "-h") == 0) { } else if (strcmp(arg, "--help") == 0 || strcmp(arg, "-h") == 0) {
PrintHelp(); PrintHelp();

Loading…
Cancel
Save