Skip to content

Commit 7a1e0e5

Browse files
committed
README.md: document WASI_SDK_CPU_CFLAGS
1 parent 52188ef commit 7a1e0e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ in compiling WebAssembly code. Supported CMake flags are:
8585
* `-DWASI_SDK_DEBUG_PREFIX_MAKE=OFF` - disable `-fdebug-prefix-map` when
8686
building C/C++ code to use full host paths instead.
8787
* `-DWASI_SDK_INCLUDE_TESTS=ON` - used for building tests.
88+
* `-DWASI_SDK_CPU_CFLAGS=..` - used to specify CFLAGS to tweak wasm features
89+
to enable/disable. The default is `-mcpu=lime1`.
8890
* `-DWASI_SDK_TEST_HOST_TOOLCHAIN=ON` - test the host toolchain's wasi-libc and
8991
sysroot libraries, don't build or use fresh libraries for tests.
9092
* `-DWASI_SDK_TARGETS=..` - a list of targets to build, by default all WASI

0 commit comments

Comments
 (0)