mirror of https://github.com/WebAssembly/wasi-sdk
Add an option to specify CFLAGS for wasm features and make lime1 the default (#527)
Add a cmake option WASI_SDK_CPU_CFLAGS to specify CFLAGS to control wasm features to enable/disable. Make the default `-mcpu=lime1`. Comparing to the default "generic" target of the recent llvm, this effectively * disables reference-types and bulk-memory (enable their partial counterparts instead) * enables extended-const Note: as of writing this, a few popular runtimes, including wasm3 and wasm-micro-runtime, don't support extented-const yet. Note: regardless of this, wasi-libc enables necessary features for certain files. (bulk-memory and exception-handling) cf. https://github.com/WebAssembly/wasi-sdk/issues/525 References: https://github.com/WebAssembly/tool-conventions/blob/main/Lime.md https://github.com/bytecodealliance/wasm-micro-runtime/issues/4272pull/550/head wasi-sdk-27
parent
dadbd94e10
commit
fbdec30656
Loading…
Reference in new issue