Files
Jerry Chen c802acf6f6 Fix build script for XCTest so it can link _TestingInterop (#87464)
Fix build script for XCTest so it can link _TestingInterop

This is follow up for #87318, where I updated the build script but still left a
few shortcomings that are addressed here.

I've validated these changes more extensively by building in CI against the
(currently) draft PR in swift-corelibs-xctest that introduces the
_TestingInterop linkage requirement.

* Update the cmake search path SwiftTesting_DIR (swift_testing -> swifttesting)

  Failed to find SwiftTesting in the earlier build: https://ci.swift.org/job/swift-corelibs-xctest-PR-Linux/139/consoleText
  ```
  -DSwiftTesting_DIR=/home/build-user/build/Ninja-ReleaseAssert/swift_testing-linux-x86_64/cmake/modules
  ...
  [2026-02-23T23:30:38.885Z] -- Could NOT find SwiftTesting (missing: SwiftTesting_DIR)
  ```

  But it was created earlier as swifttesting without the underscore:
  ```
  [2026-02-23T23:29:27.132Z] + mkdir -p /home/build-user/build/Ninja-ReleaseAssert/swifttesting-linux-x86_64
  ```

* Update build.ps1 for linking XCTest against _TestingInterop on Windows too

  * Test-XCTest: include Testing in `$env:Path` so it can find the interop dll

    Note that we provide `$(Get-ProjectBinaryCache $BuildPlatform
    Testing)**\bin**` (emphasis added) because of this setting in Testing's
    cmake config.

    ```
    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
    ```


  * Fix build ordering: put Testing before XCTest

  * Specify SwiftTesting_DIR for cmake
2026-02-27 08:46:37 -08:00
..
2024-01-12 12:25:25 -08:00
2025-12-15 21:52:02 -08:00
2024-04-10 09:38:02 -07:00
2026-01-25 21:54:48 +00:00
2025-06-25 13:20:30 -07:00
2026-02-14 16:52:51 -08:00