emsdk 多版本共存及使用

版本列表

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]
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章