2021-10-13 23:47:29 -04:00
|
|
|
set(WASI_SDK_PREFIX $ENV{WASI_SDK_PATH})
|
2021-10-08 17:07:09 -04:00
|
|
|
include($ENV{WASI_SDK_PATH}/share/cmake/wasi-sdk.cmake)
|
|
|
|
|
|
|
|
set(CMAKE_FIND_ROOT_PATH $ENV{CROSS_ROOT})
|
|
|
|
set(CMAKE_SYSROOT $ENV{WASI_SYSROOT})
|
|
|
|
|
|
|
|
set(CMAKE_C_COMPILER /usr/local/bin/clang-wasi-sysroot.sh)
|
|
|
|
set(CMAKE_CXX_COMPILER /usr/local/bin/clang++-wasi-sysroot.sh)
|
2022-12-21 22:57:29 -05:00
|
|
|
set(CMAKE_AR llvm-ar-$ENV{LLVM_VERSION})
|
|
|
|
set(CMAKE_RANLIB llvm-ranlib-$ENV{LLVM_VERSION})
|
2023-06-21 23:18:48 -04:00
|
|
|
set(CMAKE_ASM_COMPILER clang-$ENV{LLVM_VERSION})
|
|
|
|
|
|
|
|
set(CMAKE_C_COMPILER_TARGET $ENV{CROSS_TRIPLE})
|
|
|
|
set(CMAKE_CXX_COMPILER_TARGET $ENV{CROSS_TRIPLE})
|
|
|
|
set(CMAKE_ASM_COMPILER_TARGET $ENV{CROSS_TRIPLE})
|
2021-10-08 17:07:09 -04:00
|
|
|
|
2022-01-27 17:39:01 -05:00
|
|
|
set(CMAKE_CROSSCOMPILING_EMULATOR /wasi-runtimes/wasmtime/bin/wasmtime-pwd.sh)
|