-
Notifications
You must be signed in to change notification settings - Fork 9
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 for x86_64 Linux #28
Comments
@leongross Here's a start; I think this is on the right track... loader/goroot.go file controls which std lib pkgs get overridden for tinygo, based on target. To build on x86_64, we need to not use the tinygo "net" pkg, but rather use the std lib pkg. I hacked loader/goroot.go to use std lib "net" pkg:
I then tried building a test app using (note the -tags netgo). It built, but getting linker errors:
So the next thing to figure out is why internal/poll didnt' get picked up. Here's the test app:
|
Also, on a parallel topic, there is an effort to use the full "net" pkg with embedded targets. See tinygo-org/tinygo#4187. |
I did some work to enable the |
There was a discussion in the tinygo slack channel on the functionality of the net package on non-embedded platforms such as regular Linux platforms on x86_64.
What are the current limitations / issues that we have to overcome that we can use the net package for scenarios where tinygo should be run on desktop/servers that run Linux?
As soon as we figured out the issues, I'd be happy to help with the implementation.
The text was updated successfully, but these errors were encountered: