Skip to content

Commit

Permalink
add wasi profile
Browse files Browse the repository at this point in the history
  • Loading branch information
yperbasis committed Oct 10, 2023
1 parent da18844 commit 6d92d3c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/conan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
11 changes: 11 additions & 0 deletions cmake/profiles/wasi_release
Original file line number Diff line number Diff line change
@@ -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++

0 comments on commit 6d92d3c

Please sign in to comment.