vcpkg_configure_meson: Support wasm32-emscripten triplet (#26317)

Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
This commit is contained in:
pastdue 2022-09-30 20:23:42 -04:00 committed by GitHub
parent b92daebd09
commit 5f14417300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -262,6 +262,9 @@ function(z_vcpkg_meson_generate_cross_file additional_binaries) #https://mesonbu
elseif(VCPKG_TARGET_ARCHITECTURE MATCHES "loongarch64")
set(host_cpu_fam loongarch64)
set(host_cpu loongarch64)
elseif(VCPKG_TARGET_ARCHITECTURE MATCHES "wasm32")
set(host_cpu_fam wasm32)
set(host_cpu wasm32)
else()
message(FATAL_ERROR "Unsupported target architecture ${VCPKG_TARGET_ARCHITECTURE}!" )
endif()