[build-script] Forward SWIFT_SDKS and the xcrun toolchain to the unified configure
build-script-impl passes ~150 -DSWIFT_* options to the standalone swift
configure. Under LLVM_EXTERNAL_PROJECTS=swift that configure never runs --
swift's cmake runs inside LLVM's -- so none of them arrive. Diffing the two
configure lines for the same host turns up 73 options that reach the
standalone swift configure and not the unified one; comparing each against
its declared default in swift's cmake, only a handful actually change the
build. The other 45 just re-state the default and are not worth forwarding.
Forward the two that matter most here:
- SWIFT_SDKS. It defaults to "" (CMakeLists.txt), which leaves swift
configuring the stdlib and overlays for the host SDK alone. The unified
build was reporting "Building Swift standard library and overlays for
SDKs: OSX" where the standalone build reports the full
IOS;IOS_SIMULATOR;OSX;TVOS;... list, and produced no iphoneos,
iphonesimulator, appletvos, watchos or xros artifacts at all -- so a
toolchain built this way ships without any non-macOS stdlib, and its
build times are not comparable to the standalone ones.
- SWIFT_DARWIN_XCRUN_TOOLCHAIN, which otherwise defaults to XcodeDefault
rather than what build-script resolved the host toolchain to.
Both are derived per host the same way their standalone counterparts are:
SWIFT_SDKS from sorted(host_config.sdks_to_configure), matching
build_script_invocation.py, so it continues to track
--stdlib-deployment-targets. They go into llvm_cmake_options, which is
extended before extra_llvm_cmake_options, so a preset can still override
them.
SWIFT_HOST_VARIANT{,_SDK,_ARCH} are the remaining consequential gap and are
not addressed here.