-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
src: s/ia32/x86 for process.release.libUrl for win #2699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
src: s/ia32/x86 for process.release.libUrl for win #2699
Conversation
1663f8f to
6bde5bf
Compare
|
switched style, went from: READONLY_PROPERTY(release,
"libUrl",
OneByteString(env->isolate(),
strcmp(NODE_ARCH, "ia32") ? _RELEASE_URLPFX "win-"
NODE_ARCH "/node.lib"
: _RELEASE_URLPFX
"win-x86/node.lib"));from this, which I prefer but probably isn't as idiomatic for core: READONLY_PROPERTY(release,
"libUrl",
OneByteString(env->isolate(),
strcmp(NODE_ARCH, "ia32")
? _RELEASE_URLPFX "win-" NODE_ARCH "/node.lib"
: _RELEASE_URLPFX "win-x86/node.lib")); |
6bde5bf to
830c97a
Compare
|
Basically if the architecture is ia32 then we pick the library from x86 directory. Mmmm. LGTM. |
|
Yeah, when we get "ia32", we decide that it's actually based on x86, i.e. the 80x86 family and could also be referred to as x32 but not to be confused by x64 which is really x86-64 i.e. x86_64, and found in the wild sometimes as amd64 and promoted by Intel as IA64 which is where ia32 comes from, a marketing name, probably bitter over being pipped to 64-bit by AMD which lead to the awkward predominance of "amd64" in Linux land; which has further leaked in to 32-bit as amd32, if I were on that marketing team I'd do a France on them and like outlawing the use of "Champagne®" I'd force everyone to banish archaic names like EM64T and ia32e and impose Intel®64 and Intel®32 on everyone wanting to refer to 64-bit and 32-bit versions of the 80x86 family. Clear? |
|
@rvagg Thanks for the explanation. It's clear now. :) |
|
reviewers please, ping |
830c97a to
4854c42
Compare
|
rebased so it's not so unwieldy to review, see 4854c42 |
|
cc @nodejs/collaborators @nodejs/platform-windows |
IA64 is actually a completely different architecture. The change LGTM |
src/node.cc
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a note: macros (and identifiers in general) starting with an underscore are reserved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, didn't know, changed these to NODE_RELEASE_URLPFX
PR-URL: nodejs#2699 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Alexis Campailla <orangemocha@nodejs.org>
4854c42 to
89aeee5
Compare
|
https://ci.nodejs.org/job/node-test-pull-request/265/ in case I've missed anything |
|
landed 278a926 |

as per nodejs/node-gyp#711 (comment), fixes this:
We don't use
ia32anywhere in our downloads directories or files (any more), it's been banished andhttps://iojs.org/download/release/v3.3.0/win-ia32/iojs.libshould actually behttps://iojs.org/download/release/v3.3.0/win-x86/iojs.lib. Unfortunately we're still shipping withprocess.arch=='ia32'which I would equally love to banish but alas, it's well and truly baked in to history.I'm also going to put a special case in node-gyp to account for
^3.0.0and do some rewriting, which is a bit yuk but we've let this go wild since v3.x./cc @nodejs/build and anyone else who feels like critiquing my C++ style