From 6a9c858879fd40e6777997b2a2c25aa329fb850d Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 11 Sep 2025 09:55:37 -0700 Subject: [PATCH] build: optionalise Foundation and dispatch Rather than requiring the build tree for the dependencies, optionalise them. This allows us to build against an existing SDK or against the build tree. This flexibility allows us to change the build order when building the Windows toolchain against a SDK that is being built up. Without this change, we must provide a dispatch build tree which will inject the modulemap for the dispatch runtime which conflicts with the verison in the SDK that is being built against. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index be403839..a961063c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,8 +17,8 @@ endif() option(DISABLE_XCTWAITER "Disable XCTWaiter" "${DISABLE_XCTWAITER_default}") if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin AND NOT DISABLE_XCTWAITER) - find_package(dispatch CONFIG REQUIRED) - find_package(Foundation CONFIG REQUIRED) + find_package(dispatch CONFIG) + find_package(Foundation CONFIG) endif() include(GNUInstallDirs)