Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Customise compilation options #33

Open
itowlson opened this issue Aug 25, 2022 · 1 comment
Open

Customise compilation options #33

itowlson opened this issue Aug 25, 2022 · 1 comment

Comments

@itowlson
Copy link

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?

@radu-matei
Copy link

ref bytecodealliance/wizer#57

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants