Currently, WasmEdge project on MacOS supports both Intel and M1 models. However, we only test and develop on
Big Sur, and
- Operating System
- Big Sur
If you would like to develop WasmEdge on MacOS, please follow this guide to build and test from source code.
git clone https://github.com/WasmEdge/WasmEdge.git cd WasmEdge
WasmEdge will try to use the latest LLVM release to create our nightly build. If you want to build from source, you may need to install these dependencies by yourself.
- LLVM 14.0.1 (>= 10.0.0)
# Tools and libraries brew install boost cmake ninja llvm export LLVM_DIR="/usr/local/opt/llvm/lib/cmake" export CC=clang export CXX=clang++
Please refer to here for the descriptions of all CMake options.
cmake -Bbuild -GNinja -DWASMEDGE_BUILD_TESTS=ON . cmake --build build
If you don't want to dynamically link LLVM on MacOS, you can set the option
The following tests are available only when the build option
WASMEDGE_BUILD_TESTS is set to
Users can use these tests to verify the correctness of WasmEdge binaries.
cd build DYLD_LIBRARY_PATH=$(pwd)/lib/api ctest
The following tests can not pass on macos, we are investigating these issues: