diff --git a/cmake/conan.cmake b/cmake/conan.cmake index 1a1adb7e79..a306f7d96c 100644 --- a/cmake/conan.cmake +++ b/cmake/conan.cmake @@ -15,7 +15,9 @@ ]] function(guess_conan_profile) - if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") + if(SILKWORM_WASM_API) + set(wasi_release) + elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux") set(PROFILE linux_gcc_11_release) elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin") if(CMAKE_OSX_ARCHITECTURES STREQUAL "arm64") diff --git a/cmake/profiles/wasi_release b/cmake/profiles/wasi_release new file mode 100644 index 0000000000..f839b22955 --- /dev/null +++ b/cmake/profiles/wasi_release @@ -0,0 +1,11 @@ +[settings] +os=Emscripten +arch=wasm +compiler=clang +compiler.libcxx=libc++ +build_type=Release +[options] +[build_requires] +[env] +CC=/opt/wasi-sdk/bin/clang +CXX=/opt/wasi-sdk/bin/clang++