Build library target with WASI support (#108)

Fixes #107
extensions
Saúl Ibarra Corretgé 4 years ago committed by GitHub
parent b3650e6b6f
commit bf1ef49681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -43,3 +43,13 @@ else()
# GCC specific flags here
endif()
endif()
option(BUILD_WASI_SUPPORT "Build with WASI support" OFF)
if (BUILD_WASI_SUPPORT)
if (WASIENV)
target_compile_definitions(m3 PUBLIC d_m3HasMetaWASI)
elseif (NOT EMSCRIPTEN)
target_compile_definitions(m3 PUBLIC d_m3HasWASI)
endif()
endif()

Loading…
Cancel
Save