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]


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM