From b63fae8eb4debbfd94aa71dd787671e1bc0f8d24 Mon Sep 17 00:00:00 2001 From: Adam Thayer Date: Sun, 14 Oct 2018 14:36:22 -0700 Subject: [PATCH] Linux i686 Build Support This unblocks building on 32-bit Linux using the i686 triple. --- cmake/modules/SwiftSupport.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/modules/SwiftSupport.cmake b/cmake/modules/SwiftSupport.cmake index bae1f9f57..2a3f4d61a 100644 --- a/cmake/modules/SwiftSupport.cmake +++ b/cmake/modules/SwiftSupport.cmake @@ -101,6 +101,8 @@ function(get_swift_host_arch result_var_name) set("${result_var_name}" "itanium" PARENT_SCOPE) elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86") set("${result_var_name}" "i686" PARENT_SCOPE) + elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "i686") + set("${result_var_name}" "i686" PARENT_SCOPE) else() message(FATAL_ERROR "Unrecognized architecture on host system: ${CMAKE_SYSTEM_PROCESSOR}") endif()