From 40e42e8107f9c580d83167305c42e8471e7b6259 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 8 Mar 2010 09:10:24 -0800 Subject: [PATCH] Replace --cflags with --vars --- src/node.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/node.cc b/src/node.cc index 315e6b4391..0911912fa6 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1191,8 +1191,8 @@ static void PrintHelp() { " without stopping the execution\n" " --debug-brk[=port] as above, but break in script.js and\n" " wait for remote debugger to connect\n" - " --cflags print pre-processor and compiler flags\n" " --v8-options print v8 command line options\n" + " --vars print various compiled-in variables\n" "\n" "Enviromental variables:\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) { printf("%s\n", NODE_VERSION); exit(0); - } else if (strcmp(arg, "--cflags") == 0) { - printf("%s\n", NODE_CFLAGS); + } else if (strcmp(arg, "--vars") == 0) { + 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); } else if (strcmp(arg, "--help") == 0 || strcmp(arg, "-h") == 0) { PrintHelp();