summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-08-29 14:01:05 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-08-29 14:01:41 -0700
commitff7f7ae386a1097de7ebdfad3439cd5cf7456b4f (patch)
treef88705c9795b39f29369701c446e5daf2d55ee3c
parentb5144b245b2b82ca430074da6bbbf2c848f19787 (diff)
downloadnodejs-ff7f7ae386a1097de7ebdfad3439cd5cf7456b4f.tar.gz
nodejs-ff7f7ae386a1097de7ebdfad3439cd5cf7456b4f.tar.bz2
nodejs-ff7f7ae386a1097de7ebdfad3439cd5cf7456b4f.zip
Fixes #1503. make libuv backend default on unix
-rw-r--r--src/node.cc14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/node.cc b/src/node.cc
index 84909c90e..83094fa99 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -146,15 +146,7 @@ static uv_async_t eio_done_poll_notifier;
static uv_idle_t eio_poller;
-// XXX use_uv defaults to false on POSIX platforms and to true on Windows
-// platforms. This can be set with "--use-uv" command-line flag. We intend
-// to remove the legacy backend once the libuv backend is passing all of the
-// tests.
-#ifdef __POSIX__
-static bool use_uv = false;
-#else
static bool use_uv = true;
-#endif
// disabled by default for now
static bool use_http1 = false;
@@ -2341,7 +2333,7 @@ static void PrintHelp() {
" --v8-options print v8 command line options\n"
" --vars print various compiled-in variables\n"
" --max-stack-size=val set max v8 stack size (bytes)\n"
- " --use-uv use the libuv backend\n"
+ " --use-legacy use the legacy backend (default: libuv)\n"
" --use-http1 use the legacy http library\n"
"\n"
"Enviromental variables:\n"
@@ -2364,8 +2356,8 @@ static void ParseArgs(int argc, char **argv) {
if (strstr(arg, "--debug") == arg) {
ParseDebugOpt(arg);
argv[i] = const_cast<char*>("");
- } else if (!strcmp(arg, "--use-uv")) {
- use_uv = true;
+ } else if (!strcmp(arg, "--use-legacy")) {
+ use_uv = false;
argv[i] = const_cast<char*>("");
} else if (!strcmp(arg, "--use-http1")) {
use_http1 = true;