Skip to content

Install aux-overlay directory symlinks with CMake code - #5042

Merged
stellaraccident merged 1 commit into
mainfrom
users/stella/pr3928-landing-aux-overlay-symlinks
May 9, 2026
Merged

stellaraccident merged 1 commit into
mainfrom
users/stella/pr3928-landing-aux-overlay-symlinks

Conversation

@stellaraccident

Copy link
Copy Markdown
Collaborator

Partial landing split from #3928.

Changes:

  • Replace install(FILES) for the root llvm and amdgcn directory symlinks with install(CODE) that creates the symlinks at install time.

  • Create the install prefix inside the install code before creating root-level symlinks; local validation showed the closed [aux-overlay] Use install(CODE) for directory symlinks #4301 form failed when the prefix did not exist yet.

  • Leave the existing amdflang symlink behavior unchanged; conditional Fortran symlink handling remains with the split compiler work.

Rationale:

Validation:

  • cmake -S base/aux-overlay -B /tmp/therock-aux-overlay-test-build -GNinja -DTHEROCK_SOURCE_DIR=/srv/vm-shared/projects/therock-workspace1/worktrees/TheRock -DTHEROCK_PACKAGE_VERSION=0.0.0 -DGPU_TARGETS=gfx1100

  • cmake --build /tmp/therock-aux-overlay-test-build

  • cmake --install /tmp/therock-aux-overlay-test-build --prefix /tmp/therock-aux-overlay-test-install

  • verified llvm, amdgcn, and bin/amdclang are symlinks in /tmp/therock-aux-overlay-test-install

  • git diff --cached --check

Generated with Codex

Partial landing split from #3928.

Changes:

- Replace install(FILES) for the root llvm and amdgcn directory symlinks with install(CODE) that creates the symlinks at install time.

- Create the install prefix inside the install code before creating root-level symlinks; local validation showed the closed #4301 form failed when the prefix did not exist yet.

- Leave the existing amdflang symlink behavior unchanged; conditional Fortran symlink handling remains with the split compiler work.

Rationale:

- CMake install(FILES) rejects directory symlinks, which breaks aux-overlay installation for the SDK layout symlinks tracked by #3714.

Validation:

- cmake -S base/aux-overlay -B /tmp/therock-aux-overlay-test-build -GNinja -DTHEROCK_SOURCE_DIR=/srv/vm-shared/projects/therock-workspace1/worktrees/TheRock -DTHEROCK_PACKAGE_VERSION=0.0.0 -DGPU_TARGETS=gfx1100

- cmake --build /tmp/therock-aux-overlay-test-build

- cmake --install /tmp/therock-aux-overlay-test-build --prefix /tmp/therock-aux-overlay-test-install

- verified llvm, amdgcn, and bin/amdclang are symlinks in /tmp/therock-aux-overlay-test-install

- git diff --cached --check

Generated with Codex
@stellaraccident
stellaraccident merged commit 9e7a3c5 into main May 9, 2026
101 of 110 checks passed
@stellaraccident
stellaraccident deleted the users/stella/pr3928-landing-aux-overlay-symlinks branch May 9, 2026 01:43
@github-project-automation github-project-automation Bot moved this from TODO to Done in TheRock Triage May 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants