瀏覽代碼

add default arch form wasm

ruki 2 年之前
父節點
當前提交
e458eef910
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      configure

+ 2 - 0
configure

@@ -655,6 +655,8 @@ if is_host "msys" && test_nz "${MSYSTEM_CARCH}"; then
     _target_arch_default="${MSYSTEM_CARCH}"
 elif test_nz "${TERMUX_ARCH}"; then
     _target_arch_default="${TERMUX_ARCH}"
+elif test_nz "${EMSDK}"; then
+    _target_arch_default="wasm32"
 fi
 if test_eq "${_target_arch_default}" "i686"; then
     _target_arch_default="i386"