Skip to content

Handle relocated CMake build directories - #278

Open
lacker wants to merge 1 commit into
rust-lang:mainfrom
lacker:lacker/relocated-cmake-cache
Open

Handle relocated CMake build directories#278
lacker wants to merge 1 commit into
rust-lang:mainfrom
lacker:lacker/relocated-cmake-cache

Conversation

@lacker

@lacker lacker commented Aug 13, 2026

Copy link
Copy Markdown

This fixes cmake-rs builds when a cached CMake build directory is restored at a different path. It detects the relocated cache and rebuilds it instead of passing stale absolute paths to CMake.

It's kind of a weird thing to do, but this happens with Crane on Nix/macOS. I can understand if you don't think this should go here, but it seems reasonable to me because we already check CMAKE_HOME_DIRECTORY.

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.

1 participant