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

Customise compilation options

Open itowlson opened this issue 1 year ago • 1 comments

We are hitting an issue with Wizering our code after the 1.2 upgrade. We are using wit-bindgen, which generates memcpy statements, and WASI SDK 16 is compiling them using the bulk memory proposal. But Wizer currently fails if it encounters a bulk memory opcode.

I believe we could force WASI SDK to downgrade by passing clang the -mno-bulk-memory flag. But of course it would be unwelcome to force that on non-Wizering consumers.

Is there a way to inject that into the <WasiSdkClangArgs> property from a consumer of Wasi.Sdk? If not, would it be possible to provide one, e.g. in a similar way to native file references?

itowlson avatar Aug 25 '22 23:08 itowlson

ref https://github.com/bytecodealliance/wizer/pull/57

radu-matei avatar Sep 01 '22 16:09 radu-matei