SteveSandersonMS / dotnet-wasi-sdk

Packages for building .NET projects as standalone WASI-compliant modules
518 stars 36 forks source link

Possible to run respecting `RunAOTCompilation` flag? #7

Open StachuDotNet opened 2 years ago

StachuDotNet commented 2 years ago

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.

SteveSandersonMS commented 2 years ago

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.

StachuDotNet commented 2 years ago

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!

kevindarby commented 1 year ago

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