Browse Source

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

David Wilson 2 năm trước cách đây
mục cha
commit
25cd8c4cb4
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      configure

+ 2 - 0
configure

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