-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add support for downloading aarch64-apple-darwin binaries #7001
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
Conversation
93b3e79 to
5ff576f
Compare
|
CC @richiksc, @phungleson |
|
Should we wait until tomorrow so that nightlies are available? Actually, I don't even know how to test this. My installed-from-source extension never tries to download the LSP binary. I think there's some magic that happens with the published versions. |
|
I mean, nightly will be available together with the extension. I think its fine mering this earlier, so that we have more time to fix build process until the next monday |
|
bors r=matklad |
|
Again, thanks for pushing this!
…On Tue, 22 Dec 2020 at 19:38, Laurențiu Nicola ***@***.***> wrote:
bors r=matklad
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#7001 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANB3M67XES37A4ACN46CNTSWDDPJANCNFSM4VFXH75A>
.
|
|
@lnicola Sorry I wasn't able to respond to this before it got merged. A couple things I wanted to comment: Also, I feel like the code could be simplified, especially if you make the previous change. let platform: string | undefined;
if (process.arch === "ia32" || process.arch == "x32") {
showErrorMessage("Sorry, .... make sure you're not using 32-bit Node");
} else if (process.arch === "x64") {
platform = "x86_64-";
if (process.platform === "linux") platform += "unknown-linux-gnu";
else if (process.platform === "win32") platform += "pc-windows-msvc";
else if (process.platform === "darwin") platform += "apple-darwin";
} else if (process.arch === "arm64") {
platform = "aarch64-";
if (process.platform === "darwin") platform += "apple-darwin";
}Hmm, just realized that this change would break if the platform is x86_64 based but not |
I don't know. We've had a user file an issue because they were running a 32-bit Code, but I don't know how common that is. On the other hand, the cost of keeping that code is quite low (and we don't need 64-bit Node anyway).
Yeah, I considered doing something like that (not with nested |
|
@lnicola Alright, makes sense to wait until more targets are added. I understand people running 32-bit Code. |
There's also a slight behavior change here: we no longer download our 64-binaries on 32-bit Darwin and Linux. We still do that on Windows, as I don't know how to detect 32-bit Node on 64 Windows.
But some people install the 32-bit Code by mistake, I doubt 32-bit Windows is that popular in the Rust crowd.