版本列表
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]