Skip to content

Commit

Permalink
Merge pull request apple#408 from kateinoigakukun/yt/wasm-archs
Browse files Browse the repository at this point in the history
[CMake] Add support for WebAssembly target architectures
  • Loading branch information
kateinoigakukun authored Aug 1, 2024
2 parents 293314a + effb335 commit 38602cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/SwiftSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ function(get_swift_host_arch result_var_name)
set("${result_var_name}" "i686" PARENT_SCOPE)
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686")
set("${result_var_name}" "i686" PARENT_SCOPE)
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "wasm32")
set("${result_var_name}" "wasm32" PARENT_SCOPE)
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "wasm64")
set("${result_var_name}" "wasm64" PARENT_SCOPE)
else()
message(FATAL_ERROR "Unrecognized architecture on host system: ${CMAKE_SYSTEM_PROCESSOR}")
endif()
Expand Down

0 comments on commit 38602cf

Please sign in to comment.