Skip to content

Conversation

@dkegel-fastly
Copy link
Contributor

Lets 'GOARCH=386 tinygo test os' compile on linux.

Replaces the patch "Kludge: work around lack of syscall.seek on 386 and arm, #1906", which tried to do the same thing but at a higher level, thus failing to catch the direct reference to syscall.Seek in the time package.

Also skip tests that depend on seek so "GOARCH=386 tinygo test os" passes again on linux.

TODO: add CI runners that test os on 386 and arm?

This replaces an earlier kludge which was at the wrong level
and caused "GOARCH=386 tinygo test os" to fail to compile on linux.

Stubbing just the one missing function, syscall.seek, lets
os tests compile on linux 386, and skipping tests of seek and Fstat
(which has a cryptic dependency on syscall.Seek via time)
lets os tests pass on linux 386.

The stub can be removed once tinygo implements go assembly and picks up the real definition.
@dkegel-fastly
Copy link
Contributor Author

This is part of #2499 (the pull request that exposed the need for this fix), so you could just merge that and close this one if you like.

@deadprogram
Copy link
Member

Thanks for the fix @dkegel-fastly let's get it in for 0.22

Now merging.

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 this pull request may close these issues.

2 participants