浏览代码

Default to `emcc` toolchain when `EMSDK` env var is present

David Wilson 2 年之前
父节点
当前提交
25cd8c4cb4
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      configure

+ 2 - 0
configure

@@ -645,6 +645,8 @@ if is_host "msys"; then
     _target_plat_default="mingw"
     _target_plat_default="mingw"
 elif is_host "freebsd"; then
 elif is_host "freebsd"; then
     _target_plat_default="bsd"
     _target_plat_default="bsd"
+elif test_nz "${EMSDK}"; then
+    _target_plat_default="wasm"
 fi
 fi
 
 
 # set the default target architecture
 # set the default target architecture