We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MarshalingPInvokeScanner says all structs as non-blittable.
make customstruct
Test case should succeed.
Fails with:
[...] Assembly /Users/rolf/test/dotnet/marshalling-scanner/customstruct/bin/Debug/net9.0/customstruct.dll requires marshal-ilgen for method .Class1:DoSomething (first pass). ❌ Failed, because some assemblies are incompatible make: *** [customstruct] Error 1
No
No response
This happens because there's no code here handling structs:
runtime/src/tasks/MonoTargetsTasks/MarshalingPInvokeScanner/MinimalMarshalingTypeCompatibilityProvider.cs
Lines 108 to 114 in 035d268
The code should look at all instance fields of a struct, and if they're all blittable, then the struct is blittable too.
The text was updated successfully, but these errors were encountered:
Tagging subscribers to this area: @dotnet/interop-contrib See info in area-owners.md if you want to be subscribed.
Sorry, something went wrong.
No branches or pull requests
Description
MarshalingPInvokeScanner says all structs as non-blittable.
Reproduction Steps
make customstruct
Expected behavior
Test case should succeed.
Actual behavior
Fails with:
Regression?
No
Known Workarounds
No response
Configuration
No response
Other information
This happens because there's no code here handling structs:
runtime/src/tasks/MonoTargetsTasks/MarshalingPInvokeScanner/MinimalMarshalingTypeCompatibilityProvider.cs
Lines 108 to 114 in 035d268
The code should look at all instance fields of a struct, and if they're all blittable, then the struct is blittable too.
The text was updated successfully, but these errors were encountered: