Skip to content

Commit

Permalink
Merge pull request swiftlang#3030 from apple/maxd/wasm32-swiftsupport
Browse files Browse the repository at this point in the history
Add support for wasm32 architecture in `SwiftSupport.cmake`
  • Loading branch information
spevans authored Aug 9, 2021
2 parents 3a3241b + 6806456 commit f4cd0d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/modules/SwiftSupport.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ 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)
else()
message(FATAL_ERROR "Unrecognized architecture on host system: ${CMAKE_SYSTEM_PROCESSOR}")
endif()
Expand Down

0 comments on commit f4cd0d1

Please sign in to comment.