From db6cec96edf35dc59c7eb9cc9c593dbaf80eb9da Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 30 Aug 2021 11:31:51 -0700 Subject: [PATCH] caches: add a cache for a i686 build of the runtime on Windows This adds a cache for a configuration of the standard library for Windows x86 configurations. This should help restore the x86 builds of the SDK for Windows. --- cmake/caches/Runtime-Windows-i686.cmake | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 cmake/caches/Runtime-Windows-i686.cmake diff --git a/cmake/caches/Runtime-Windows-i686.cmake b/cmake/caches/Runtime-Windows-i686.cmake new file mode 100644 index 0000000000000..3946880a9c98f --- /dev/null +++ b/cmake/caches/Runtime-Windows-i686.cmake @@ -0,0 +1,21 @@ + +set(SWIFT_HOST_VARIANT_SDK WINDOWS CACHE STRING "") +set(SWIFT_HOST_VARIANT_ARCH i686 CACHE STRING "") + +# NOTE(compnerd) disable the tools, we are trying to build just the standard +# library. +set(SWIFT_INCLUDE_TOOLS NO CACHE BOOL "") + +# NOTE(compnerd) cannot build tests since the tests require the toolchain +set(SWIFT_INCLUDE_TESTS NO CACHE BOOL "") + +# NOTE(compnerd) cannot build docs since that requires perl +set(SWIFT_INCLUDE_DOCS NO CACHE BOOL "") + +# NOTE(compnerd) these are part of the toolchain, not the runtime. +set(SWIFT_BUILD_SYNTAXPARSERLIB NO CACHE BOOL "") +set(SWIFT_BUILD_SOURCEKIT NO CACHE BOOL "") + +# NOTE(compnerd) build with the compiler specified, not a just built compiler. +set(SWIFT_BUILD_RUNTIME_WITH_HOST_COMPILER YES CACHE BOOL "") +