From d2d981252b82734c3bfa8b23d72e14239d3c23e3 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Sat, 5 Sep 2015 14:41:34 +1000 Subject: [PATCH] src: s/ia32/x86 for process.release.libUrl for win PR-URL: https://github.com/nodejs/node/pull/2699 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Alexis Campailla --- src/node.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/node.cc b/src/node.cc index b60cfb573ceead..74274f7eb9c5b1 100644 --- a/src/node.cc +++ b/src/node.cc @@ -2727,22 +2727,25 @@ void SetupProcessObject(Environment* env, #endif #if defined(NODE_RELEASE_URLBASE) -# define _RELEASE_URLPFX NODE_RELEASE_URLBASE "v" NODE_VERSION_STRING "/" -# define _RELEASE_URLFPFX _RELEASE_URLPFX "node-v" NODE_VERSION_STRING +# define NODE_RELEASE_URLPFX NODE_RELEASE_URLBASE "v" NODE_VERSION_STRING "/" +# define NODE_RELEASE_URLFPFX NODE_RELEASE_URLPFX "node-v" NODE_VERSION_STRING READONLY_PROPERTY(release, "sourceUrl", OneByteString(env->isolate(), - _RELEASE_URLFPFX ".tar.gz")); + NODE_RELEASE_URLFPFX ".tar.gz")); READONLY_PROPERTY(release, "headersUrl", OneByteString(env->isolate(), - _RELEASE_URLFPFX "-headers.tar.gz")); + NODE_RELEASE_URLFPFX "-headers.tar.gz")); # ifdef _WIN32 READONLY_PROPERTY(release, "libUrl", OneByteString(env->isolate(), - _RELEASE_URLPFX "win-" NODE_ARCH "/node.lib")); + strcmp(NODE_ARCH, "ia32") ? NODE_RELEASE_URLPFX "win-" + NODE_ARCH "/node.lib" + : NODE_RELEASE_URLPFX + "win-x86/node.lib")); # endif #endif