版本列表
emsdk list
安装/使用
# 安装最新版
./emsdk install latest
#安装指定版本,1.39.17 默认安装的是 upstream
./emsdk install 1.39.17
#安装指定版本fastcomp
./emsdk install 1.39.17-fastcomp
#使用指定版本
./emsdk activate 1.39.17
./emsdk activate 1.38.45
...
emcc --show-ports
可选第三方库,直接安装,例如
emcc -s WASM=1 -s USE_SDL=2 main.cpp -o main.html
疑问?
fastomp 和 upstream 的区别?
不太清楚,难道是fastomp是测试版,upstream是发行版?
m++: warning: the fastomp compiler is deprecated.
Please switch to the upstream llvm backend as soon as possible and open issues if you have trouble doing so [-Wfastcomp]