-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Support Loongarch LE architecture #2373
Conversation
@@ -0,0 +1,17 @@ | |||
{ | |||
"name": "esbuild-linux-loong64", |
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.
Note that this package name doesn't work because it's already in use, and already has content published to it: https://www.npmjs.com/package/esbuild-linux-loong64. I will have to come up with another package name instead.
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.
Hi,
"esbuild-linux-loong64" sounds like a good name, Whether can contact npmjs/esbuild-linux-loong64 package ,
ask him to help deal with this package
cheers~
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.
Note that this package name doesn't work because it's already in use, and already has content published to it: https://www.npmjs.com/package/esbuild-linux-loong64. I will have to come up with another package name instead.
I have deleted this package.
Makefile
Outdated
@@ -339,6 +340,9 @@ platform-linux-riscv64: | |||
platform-linux-s390x: | |||
@$(MAKE) --no-print-directory GOOS=linux GOARCH=s390x NPMDIR=npm/esbuild-linux-s390x platform-unixlike | |||
|
|||
platform-linux-loong64: | |||
@$(MAKE) --no-print-directory GOOS=linux GOARCH=loong64 NPMDIR=npm/esbuild-linux-loong64 platform-unixlike |
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.
- For now, only
Go@1.18.2
and newer suppoort Loongarch.
When I try to run this command, I get this error:
go: unsupported GOOS/GOARCH pair linux/loong64
My go version
:
go version go1.18.3 darwin/arm64
That implies that Go 1.18.2 and newer do not support this architecture. This makes sense because it's supposed to only be supported in Go 1.19 and up:
Go 1.19 adds support for the Loongson 64-bit architecture LoongArch on Linux (
GOOS=linux
,GOARCH=loong64
).
See also: #1804
This PR adds support for Loongarch 64-bit LE Linux.
Please be informed:
Go@1.18.2
and newer suppoort Loongarch.golang.org/x/sys
package must be abovev0.0.0-20220624
. Details in this commit