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

Also provide binaries for Android arm #1556

Closed
thunder-coding opened this issue Aug 27, 2021 · 3 comments
Closed

Also provide binaries for Android arm #1556

thunder-coding opened this issue Aug 27, 2021 · 3 comments

Comments

@thunder-coding
Copy link

Currently esbuild only has prebuilt binaries for Android aarch64/arm64. It would be great to also have it for arm devices.

@hez
Copy link

hez commented Sep 6, 2021

Rasbian 32bit is also armv7 I believe. Would be nice to be able to target/build for that.

$ arch
armv7l

@evanw
Copy link
Owner

evanw commented Jan 22, 2022

Cross-posting from #1578 (comment)

I'm closing this as I don't want to complicate esbuild's deploy process by having to install the entire Android build toolchain for this one platform. All of the other 18 platforms I already support can be built fine by Go on any platform without installing anything. I still don't understand why Go doesn't support cross-platform builds for this platform in particular (Go and Android are even both Google projects!) but that's up to them I guess. If you want to run esbuild on 32-bit Android ARM, you'll have to build it yourself. Sorry.

@FossPrime
Copy link

FossPrime commented Mar 4, 2022

Linux arm (32bit ARM) and Android amd64 do cross compile just fine... The only relevant ones that don't are iOS arm64 and Android amd64

For 32bit Raspberry PI @hez, it's now supported natively, cross compiling also works GOOS=linux GOARCH=arm go build ./cmd/esbuild
@thunder-coding for Android 64bit ARM, it's already natively supported by esbuild... but if you wanted to cross compile than this worked GOOS=android GOARCH=arm64 go build ./cmd/esbuild

Both of those do cross compile as expected in my testing, but also based on the documentation:

https://gist.github.com/asukakenji/f15ba7e588ac42795f421b48b8aede63#support-grid-1

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 a pull request may close this issue.

4 participants