Skip to content

[Caching] Prefix map OBJROOT and BUILD_DIR - #1854

Merged
cachemeifyoucan merged 1 commit into
swiftlang:mainfrom
cachemeifyoucan:eng/caching-prefix-map-objroot-builddir
Oct 12, 2026
Merged

cachemeifyoucan merged 1 commit into
swiftlang:mainfrom
cachemeifyoucan:eng/caching-prefix-map-objroot-builddir

Conversation

@cachemeifyoucan

Copy link
Copy Markdown
Contributor

With project prefix mapping on, only directories one level below
OBJROOT and BUILD_DIR are mapped (PROJECT_TEMP_DIR and
BUILT_PRODUCTS_DIR). Paths next to them still end up verbatim in the
compile cache key, for example the generated module maps of package
targets in $(OBJROOT)/GeneratedModuleMaps-<platform>, or an in-build
macro plugin in another platform's products directory.

Map OBJROOT to /^intermediates and BUILD_DIR to /^products. The
existing, more specific mappings still take precedence.

With project prefix mapping on, only directories one level below
OBJROOT and BUILD_DIR are mapped (PROJECT_TEMP_DIR and
BUILT_PRODUCTS_DIR). Paths next to them still end up verbatim in the
compile cache key, for example the generated module maps of package
targets in `$(OBJROOT)/GeneratedModuleMaps-<platform>`, or an in-build
macro plugin in another platform's products directory.

Map OBJROOT to `/^intermediates` and BUILD_DIR to `/^products`. The
existing, more specific mappings still take precedence.
@cachemeifyoucan

Copy link
Copy Markdown
Contributor Author

@swift-ci please test

@cachemeifyoucan
cachemeifyoucan merged commit 1e7a703 into swiftlang:main Oct 12, 2026
129 of 136 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants