Skip to content
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

feat: support linux riscv64 LE architecture #2000

Merged
merged 1 commit into from
Feb 9, 2022
Merged

feat: support linux riscv64 LE architecture #2000

merged 1 commit into from
Feb 9, 2022

Conversation

piggynl
Copy link
Contributor

@piggynl piggynl commented Feb 8, 2022

This PR adds support for Linux on RISC-V 64bit.

Is there anywhere I missed out?

Makefile Outdated Show resolved Hide resolved
@@ -22,6 +22,7 @@ export const knownUnixlikePackages: Record<string, string> = {
'linux arm LE': 'esbuild-linux-arm',
'linux arm64 LE': 'esbuild-linux-arm64',
'linux ia32 LE': 'esbuild-linux-32',
'linux riscv64 LE': 'esbuild-linux-riscv64',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

riscv64 is not documented as something node ever returns for process.arch: https://nodejs.org/api/process.html#processarch:

process.arch

The operating system CPU architecture for which the Node.js binary was compiled. Possible values are: 'arm', 'arm64', 'ia32', 'mips','mipsel', 'ppc', 'ppc64', 's390', 's390x', 'x32', and 'x64'.

I'm wondering if node's documentation is wrong because this PR appears to indicate that node supports this architecture. I asked about that here: nodejs/node#41900.

Copy link
Owner

@evanw evanw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#2000 🎉

Looks good to me. I'll take it from here.

@evanw evanw merged commit 644ca7d into evanw:master Feb 9, 2022
evanw added a commit that referenced this pull request Feb 9, 2022
@piggynl
Copy link
Contributor Author

piggynl commented Feb 9, 2022

Thanks!

@piggynl piggynl deleted the linux-riscv64 branch February 9, 2022 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants