NativeAOT - prior art for infering custom attributes #108101
Labels
area-NativeAOT-coreclr
question
Answer questions and provide assistance, not an issue with source code or documentation.
I want to ask if anyone thinks there is prior art for this problem, dotnet/runtimelab#2626
In NativeAOT-LLVM, if a library is referenced that contains
JSExport
, we need to mark it asUnmanagedCallersOnly
in addition so we can root it, export it, and get the right calling convention. Example is theRegister
method created by the JSExport source generator. Rooting can be solved with theRdXmlRootProvider
but the other problems are harder. One way is to change the source generator to always add it, and another way, not necessarily correct, is to view this as: "NativeAOT requires additional attributes that the library author might not be aware of", so I was wondering if there is any prior art?Thanks!
The text was updated successfully, but these errors were encountered: