dotnet-wasi-sdk icon indicating copy to clipboard operation
dotnet-wasi-sdk copied to clipboard

Possible to run respecting `RunAOTCompilation` flag?

Open StachuDotNet opened this issue 3 years ago • 3 comments

I've successfully used this tool for Dark, yielding a single .wasm file - awesome!

Currently, dotnet-wasi-sdk doesn't seem to respect the RunAOTCompilation. Is there a way to adjust the project to respect it? Or maybe I'm incorrect in hoping for that flag to be respected here.

StachuDotNet avatar Apr 27 '22 13:04 StachuDotNet

I agree! That's definitely something we should add support for. In my estimation, most production deployments should use AOT since the additional file size isn't really much of a drawback, and the additional speed gain is definitely valuable.

No specific ETA for implementing this, though I'd certainly take a PR if you're able to figure it out. It's not easy to figure out though.

SteveSandersonMS avatar May 05 '22 15:05 SteveSandersonMS

Unfortunately, I have no idea where to start here. :)

If you provide some initial pointers, I'll know if I have the background/energy to pursue it. If not, at least we can provide the future implementer some initial notes!

StachuDotNet avatar May 08 '22 18:05 StachuDotNet

Could we use the AOT build steps that these guys did? : https://github.com/pavelsavara/dotnet-wasm-todo-mvc

kevindarby avatar Mar 01 '23 21:03 kevindarby