How can I create a kotlin/wasm binary that links a...
# webassembly
m
How can I create a kotlin/wasm binary that links against some code compiled from C/++?
a
m
I tried this example on a mac but I only got
Copy code
unable to create target: 'No available targets are compatible with triple "wasm32"'
when compiling the native file. What does that mean and how can it be fixed? I have to admit that I am brand new to WASM and just wanted to give this a try.
Got the example working after installing the right version of llvm via homebrew
Copy code
brew install llvm
and setting the compiler in the
local.properties
file.
Copy code
PATH_TO_CLANG=/usr/local/opt/llvm/bin/clang
Thanks for the example @Artem Kobzar
K 1