-
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
Fails to fallback to js/wasm on Android x64 and no binary available #2068
Comments
For the record: I'm not going to support this platform natively as the Go compiler doesn't support cross-compiling for this platform. This is the same situation as in #1556, which was Android for ARM 32-bit. The specific error message is I think falling back to WebAssembly in this case could be a good alternative. Or, rather, it's a bad alternative because it's 10x slower but at least it'll work. |
I gave this a shot in version 0.14.24. Can you try it out and see if it works? It's untested because I don't have an Android x64 device but it should work in theory. |
ARM32 is going thw way of the Dodo... Android x64 LE refers to android running x86_64, yes Intel. His comment did not suggest Intel x64 wasn't supported |
Works great. Speed is good. I believe the Android studio emulator can easily spin up tablet with Android x64 and sideload F-Droid to install the latest Termux terminal emulator. This might actually be a reasonable way to run Linux programs, if Docker is not already in the workflow. |
Oh wow. I didn't expect it to work the first time since it's never been tested. Glad it works! |
UPDATEI ran the esbuild-linux-64 package on Android amd64, it compiles in 28 seconds!! Do with that what you will... this is no surprise as Google has been working to upstream more of Android to Linux. It's probably faster than what I got with my compiled version because of my gcc version, parameters or deoptimizations Golang puts in place when you target Android specifically
It was a whole one second faster to use the 19M Android amd64 binary... compiled on Android using
|
Describe the bug
The issue is esbuild has a binary and supports Android, but it does not make a build for Intel based Android, so it both requires the binary code and can't provide it.
System Info
HP Chromebook 14c
Logs
Error in Vite which depends on esbuild:
Used Package Manager
npm
The text was updated successfully, but these errors were encountered: