This adds the C WASI implementation as a new crate, wasmtime-wasi-c, and adds a command-line flag to the wasmtime command-line driver to select which WASI implementation to use.
9 lines
243 B
CMake
9 lines
243 B
CMake
cmake_minimum_required(VERSION 3.0)
|
|
project(SandboxedSystemPrimitives C)
|
|
|
|
include_directories(include)
|
|
|
|
add_library(SandboxedSystemPrimitives STATIC src/posix.c src/random.c src/str.c)
|
|
|
|
install(TARGETS SandboxedSystemPrimitives DESTINATION .)
|