From e80ff08e7e7bb6eb52d2e9ab14062ffc05b22de9 Mon Sep 17 00:00:00 2001 From: Volodymyr Shymanskyy Date: Sun, 19 Apr 2020 04:49:23 +0300 Subject: [PATCH] Remove d_m3HasWASI for Emscripten targets --- source/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt index c6fdc50..8945966 100644 --- a/source/CMakeLists.txt +++ b/source/CMakeLists.txt @@ -49,7 +49,8 @@ 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) + elseif (EMSCRIPTEN OR EMSCRIPTEN_LIB) + else() target_compile_definitions(m3 PUBLIC d_m3HasWASI) endif() endif()