-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fix Some C-API calls #316
Fix Some C-API calls #316
Conversation
Thanks! I've opened #317 which should help some. Maybe we need both? |
Looking alittle closer this, seem to only be a change in the wasmtime 0.22.0 versions. We will also need bytecodealliance/wasmtime@77405cc. I am guessing we are missing other API changes between 0.19 and 0.22 which is why when pulling this into #317 didn't work |
Yeah this is only fixing the first of the two things you linked. We'll need another PR to fix bytecodealliance/wasmtime@77405cc. At the end I guess we'll need to merge all 3 PRs together to test it it finally fixes all of the tests. |
Yes, I would like to group the changes to get CI passing in order to merge. Without that I am not confident enough in the changes. I won't be able to get to bytecodealliance/wasmtime@77405cc today if you are interested in picking that up too. Thanks for the help! |
Unfortunately I don't think I'll have time today or tomorrow. It looks like a pretty complex set of changes! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for updating this!
It looks like the MarshalAs(UnmanagedType.I1)
attribute is missing from the function delcaration, as without this, .NET would marshal the bool
value as 4-byte BOOL
, rather than as 1 byte value.
Otherwise, this looks good to me.
@martindevans could you rebase? then we can get this in for 1.22 release |
@jsturtevant I'm on holiday at the moment. I'll be able to look at it on Sunday at the soonest. If you want to take these changes and incorporate them yourself before then go ahead :) |
Co-authored-by: Konstantin Preißer <kpreisser@users.noreply.github.com>
Co-authored-by: Konstantin Preißer <kpreisser@users.noreply.github.com>
c166963
to
e0066c3
Compare
I just discovered GitHub itself has a button to automatically do the rebase, so I don't need access to my PC after all! |
no worries. Thanks and I hope you I didn't interrupt your personal time, that always takes precedent |
Fixed breakage due to changes introduced in bytecodealliance/wasmtime@e55fa3c
Obviously I can't run all the tests, due to the other changes mentioned here #315 (comment). Here's what I could run:
The WasiTests cover the changed code.