You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not a biggie, but I'd sometimes build Linux apps locally on my Mac, and throw them directly on one of my spare machines. It's just a time saver when I don't need to bother with setting up a build and deployment pipeline.
Anyway, while the standard go command allows cross-platform building, the following has no effect in Bud:
GOOS=linux GOARCH=amd64 bud build
It will simply produce a Mac (in my case) binary and ignore the options.
Out of curiosity, will this feature be supported, or is it preferable to build the Linux app on the target machine?
The text was updated successfully, but these errors were encountered:
Hey @preslavrachev! I'd love to add cross-compilation support. Right now we're blocked by the V8 dependency which depends on CGO.
I'm working going to integrate https://github.com/livebud/js soon to support the Goja runtime, so you'll be able to swap to a slower, but CGO-less build.
One thing I'm wondering is how seamless it should be. I was thinking of if CGO_ENABLED=1, you'd switch over to the V8 build, otherwise it's the Goja build. Maybe this is going to be too subtle though. Goja is quite a bit slower than V8, so it might be an unexpected, undesirable swap.
Not a biggie, but I'd sometimes build Linux apps locally on my Mac, and throw them directly on one of my spare machines. It's just a time saver when I don't need to bother with setting up a build and deployment pipeline.
Anyway, while the standard
go
command allows cross-platform building, the following has no effect in Bud:It will simply produce a Mac (in my case) binary and ignore the options.
Out of curiosity, will this feature be supported, or is it preferable to build the Linux app on the target machine?
The text was updated successfully, but these errors were encountered: