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

Initial Go 1.20 support #3391

Merged
merged 5 commits into from
Jan 17, 2023
Merged

Initial Go 1.20 support #3391

merged 5 commits into from
Jan 17, 2023

Conversation

aykevl
Copy link
Member

@aykevl aykevl commented Jan 16, 2023

Not all features are supported yet and some tests still fail, but most code should compile with these patches.
We can work on full support with this merged, to get it in shape for Go 1.20 when it is released.

This adds support for unsafe.SliceData, unsafe.String, and
unsafe.SringData that were introduced in Go 1.20.
This function provides a mechanism to watch for changes to the GODEBUG
environment variable. For now, we'll not implement it. It might be
useful in the future, when it can always be added.
This is expected starting with Go 1.20.

I've also applied the same modification to syscall_libc.go so that
setenv is only called in a single place.
Not all features work yet, but allow it to compile with this Go version.
@deadprogram
Copy link
Member

Thank you for working on this @aykevl now merging.

@QuLogic
Copy link
Contributor

QuLogic commented Jan 23, 2023

If I've applied this correctly this time, I think there's only one failure now, #3408.

aykevl added a commit that referenced this pull request Feb 2, 2023
I missed this in #3391 (because
I didn't test on Windows, my fault).
aykevl added a commit that referenced this pull request Feb 2, 2023
I missed this in #3391 (because
I didn't test on Windows, my fault).
aykevl added a commit that referenced this pull request Feb 2, 2023
I missed this in #3391 (because
I didn't test on Windows, my fault).
aykevl added a commit that referenced this pull request Feb 3, 2023
I missed this in #3391 (because
I didn't test on Windows, my fault).
deadprogram pushed a commit that referenced this pull request Feb 14, 2023
I missed this in #3391 (because
I didn't test on Windows, my fault).
waj334 pushed a commit to waj334/tinygo that referenced this pull request Feb 24, 2023
I missed this in tinygo-org#3391 (because
I didn't test on Windows, my fault).
LiuJiazheng pushed a commit to LiuJiazheng/tinygo that referenced this pull request Aug 20, 2023
I missed this in tinygo-org#3391 (because
I didn't test on Windows, my fault).
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.

3 participants