Skip to content

Commit

Permalink
build: allow control over the Windows arches to build
Browse files Browse the repository at this point in the history
This allows the user to specify the architectures that they would want
to build for Windows.  If it is not specified, then all known variants
(ARM and x86 32-bit and 64-bit) will be built.
  • Loading branch information
compnerd committed Sep 22, 2018
1 parent 8788253 commit 39f38fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,10 @@ endif()
# Should we cross-compile the standard library for Windows?
is_sdk_requested(WINDOWS swift_build_windows)
if(swift_build_windows AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
configure_sdk_windows(WINDOWS "Windows" "msvc" "aarch64;armv7;i686;x86_64")
if("${SWIFT_SDK_WINDOWS_ARCHITECTURES}" STREQUAL "")
set(SWIFT_SDK_WINDOWS_ARCHITECTURES aarch64;armv7;i686;x86_64)
endif()
configure_sdk_windows(WINDOWS "Windows" "msvc" "${SWIFT_SDK_WINDOWS_ARCHITECTURES}")
endif()

if("${SWIFT_SDKS}" STREQUAL "")
Expand Down

0 comments on commit 39f38fd

Please sign in to comment.