Commit Graph

3 Commits

Author SHA1 Message Date
Saleem Abdulrasool
2a7d500ea4 test: migrate additional tests to swift-build-modules
Migrate two more instances of the lit test `RUN` lines to
`swift-build-modules` to ensure that all the modules are available for
the CAS build.
2025-12-15 08:47:47 -08:00
Steven Wu
756e53967e [TEST-ONLY] Add utility to perform explicit module build
Add a script to build all dependencies for explicit module build in one
step. This reduces the boiling plate code needed to write a test for
explicit module build and allows the test to be more cross platform and
resilient to module dependencies changes.
2025-12-09 12:16:18 -08:00
Steven Wu
531227d4b9 [Caching] Clear benign CodeGen options when building modules
Use `resetBenignCodeGenOptions()` from clang dependency scanner to clear
the swift explicit module build cc1 arguments. This fixes the problem
that CurrentWorkingDirectory is leaking through
`-fcoverage-compilation-dir` that can cause extra module variants when
caching is enabled. This also avoid the duplicating the logics for
clearing CodeGen options inside Swift.

rdar://151395300
2025-05-15 11:45:21 -07:00