From f3b3e4b2ed2453a4a21d0130bb0f2427652e2065 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 15 May 2025 15:52:50 +0900 Subject: [PATCH] README.md: document WASI_SDK_CPU_CFLAGS --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 19b4770..3b8a0c0 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,8 @@ in compiling WebAssembly code. Supported CMake flags are: * `-DWASI_SDK_DEBUG_PREFIX_MAKE=OFF` - disable `-fdebug-prefix-map` when building C/C++ code to use full host paths instead. * `-DWASI_SDK_INCLUDE_TESTS=ON` - used for building tests. +* `-DWASI_SDK_CPU_CFLAGS=..` - used to specify CFLAGS to tweak wasm features + to enable/disable. The default is `-mcpu=lime1`. * `-DWASI_SDK_TEST_HOST_TOOLCHAIN=ON` - test the host toolchain's wasi-libc and sysroot libraries, don't build or use fresh libraries for tests. * `-DWASI_SDK_TARGETS=..` - a list of targets to build, by default all WASI