Fix build failures on Windows and Linux #2545

Manually merged
github merged 6 commits from gh-pr/2545/head into gh-pr/2545/base 2026-11-26 10:22:40 +00:00
Owner

@⁠Ekt0re on GitHub · 2026-11-24 17:50 UTC · original
Ekt0re:Fix-OpenAL-builds → main · +56 −2 · 2 files · 6 commits · merged 2026-11-25 01:26 UTC

Fix CI build failures on Windows (clang-cl) and Linux (clang++)

Summary

This PR fixes four independent build failures in the CI, all related to the bundled openal-soft sources or to the toolchain used to build them. No file under 3rdparty/ is modified: source-level workarounds are applied at configure time on copies placed in the build directory.

# Platform Error location Fixed in
1 Windows reverb.cpp (NONBLOCKING attribute vs MSVC STL) CMakeLists.txt
2 Windows alc.cpp(1784) (std::views::transform deduction) CMakeLists.txt
3 Linux chorus.cpp, distortion.cpp, pshifter.cpp, fshifter.cpp (mUpsampler.emplace()) CMakeLists.txt
4 Linux CMAKE_C_COMPILER_AR-NOTFOUND (LTO tools missing) .github/workflows/build.yml

Windows (clang-cl + MSVC STL)

1. reverb.cpp: NONBLOCKING attribute breaks std::ranges::for_each

Cause. openal-soft defines NONBLOCKING as [[clang::nonblocking]] in 3rdparty/openal-soft/common/opthelpers.h. With Clang, this attribute becomes part of the type of pointers to member functions, e.g.:

void (BandSplitter::*)() noexcept __attribute__((nonblocking))

The MSVC STL (std::_Is_memfunptr) does not recognize this type, so std::ranges::for_each fails to compile.

Fix (CMakeLists.txt). Right after 3rdparty is added, for the OpenAL target built with Clang:

  • A header openal_nonblocking_fix.h is generated in the build directory. It includes opthelpers.h and then redefines NONBLOCKING as empty.
  • The header is force-included for C++ files only: /FI for clang-cl, -include for other Clang frontends.
    This is consistent with HAVE_WFUNCTION_EFFECTS OFF, already set in 3rdparty. The fix does not depend on the Clang version and does not affect other compilers.

2. alc.cpp(1784): std::views::transform fails with MSVC STL 14.52+

Cause. With MSVC STL 14.52+ (Visual Studio Enterprise on the CI runner), deduction of _Fn fails for &std::unique_ptr<...>::operator* when passed to std::views::transform. The failing expression is:

std::views::transform(&ContextBase::EffectSlotCluster::operator*)

Fix (CMakeLists.txt, KYTY_CLANG_CL only).

  • 3rdparty/openal-soft/alc/alc.cpp is copied into the build directory as openal_alc_patched.cpp.
  • The expression above is replaced with an equivalent lambda:
std::views::transform([](auto &c) -> auto& { return *c; })
  • The original alc.cpp is marked HEADER_FILE_ONLY for the OpenAL target, so only the patched copy is compiled.

Linux (clang++ + libstdc++ 14)

3. mUpsampler.emplace() fails in the effect sources

Cause. Clang <= 19 with libstdc++ 14 evaluates std::is_constructible_v<std::array<UpsampleParams, NumLines>> as false when UpsampleParams is a nested struct with default member initializers (NSDMI) held inside std::optional. As a result, mUpsampler.emplace() fails to compile in:

  • alc/effects/chorus.cpp
  • alc/effects/distortion.cpp
  • alc/effects/pshifter.cpp
  • alc/effects/fshifter.cpp
    This is a compiler bug, so it cannot be fixed with a CMake option; it is worked around in the sources instead.

Fix (CMakeLists.txt). The patching logic was extracted into a reusable function, kyty_patch_openal_source. For LINUX builds with CLANG:

  • The four files above are copied into the build directory.
  • In each copy, mUpsampler.emplace() is replaced with:
mUpsampler.emplace(decltype(mUpsampler)::value_type{})

This constructs the object by move from a value-initialized aggregate, which avoids the zero-argument is_constructible_v check that Clang gets wrong.

  • The original files are marked HEADER_FILE_ONLY for the OpenAL target, so only the patched copies are compiled.

4. CMAKE_C_COMPILER_AR-NOTFOUND: missing LLVM archiver tools

Cause. With CMAKE_INTERPROCEDURAL_OPTIMIZATION=ON and clang-19, CMake requires llvm-ar-19 and llvm-ranlib-19. These are not installed by apt-get install --no-install-recommends clang-19.

Fix (.github/workflows/build.yml). llvm-19 was added to the build dependencies of the linux job.


Files changed

File Change
CMakeLists.txt Force-included openal_nonblocking_fix.h for the OpenAL target on Clang (C++ only); patched copy of alc.cpp for KYTY_CLANG_CL; new function kyty_patch_openal_source; patched copies of chorus.cpp, distortion.cpp, pshifter.cpp, fshifter.cpp on Linux + Clang. Originals are marked HEADER_FILE_ONLY
.github/workflows/build.yml linux job installs llvm-19

Notes

  • Because the Linux workaround lives in CMake, local builds on Linux with Clang (including Clang 18) are covered as well, without requiring a specific compiler version.
  • Local LTO builds on Linux need the matching llvm-ar / llvm-ranlib (package llvm-19).
  • The alc.cpp and effect-source patches are text replacements on submodule files. After a submodule update, verify that the replaced expressions still exist; otherwise a patch becomes a silent no-op.
  • Alternatives considered for error 3: patching the submodule directly (rejected: fragile across submodule updates and modifies 3rdparty), or switching the Linux job to GCC 14 (not affected by the bug).

Testing

  • Windows (clang-cl) build completes, reverb.cpp compiles
  • Linux (clang++-19) build completes, chorus.cpp and distortion.cpp compile
  • Other compilers/platforms are unaffected

AI Use

Gemini 4 Hydrogen was used to investigate the root cause of the problem and to write this documentation. Testing and code review were done by me personally.

**@⁠Ekt0re** on GitHub · 2026-11-24 17:50 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2545) `Ekt0re:Fix-OpenAL-builds` → `main` · +56 −2 · 2 files · 6 commits · merged 2026-11-25 01:26 UTC # Fix CI build failures on Windows (`clang-cl`) and Linux (`clang++`) ## Summary This PR fixes four independent build failures in the CI, all related to the bundled `openal-soft` sources or to the toolchain used to build them. **No file under `3rdparty/` is modified**: source-level workarounds are applied at configure time on copies placed in the build directory. | # | Platform | Error location | Fixed in | | --- | --- | --- | --- | | 1 | Windows | `reverb.cpp` (`NONBLOCKING` attribute vs MSVC STL) | `CMakeLists.txt` | | 2 | Windows | `alc.cpp(1784)` (`std::views::transform` deduction) | `CMakeLists.txt` | | 3 | Linux | `chorus.cpp`, `distortion.cpp`, `pshifter.cpp`, `fshifter.cpp` (`mUpsampler.emplace()`) | `CMakeLists.txt` | | 4 | Linux | `CMAKE_C_COMPILER_AR-NOTFOUND` (LTO tools missing) | `.github/workflows/build.yml` | --- ## Windows (`clang-cl` + MSVC STL) ### 1. `reverb.cpp`: `NONBLOCKING` attribute breaks `std::ranges::for_each` **Cause.** `openal-soft` defines `NONBLOCKING` as `[[clang::nonblocking]]` in `3rdparty/openal-soft/common/opthelpers.h`. With Clang, this attribute becomes part of the type of pointers to member functions, e.g.: ``` void (BandSplitter::*)() noexcept __attribute__((nonblocking)) ``` The MSVC STL (`std::_Is_memfunptr`) does not recognize this type, so `std::ranges::for_each` fails to compile. **Fix (`CMakeLists.txt`).** Right after `3rdparty` is added, for the `OpenAL` target built with Clang: - A header `openal_nonblocking_fix.h` is generated in the build directory. It includes `opthelpers.h` and then redefines `NONBLOCKING` as empty. - The header is force-included **for C++ files only**: `/FI` for `clang-cl`, `-include` for other Clang frontends. This is consistent with `HAVE_WFUNCTION_EFFECTS OFF`, already set in `3rdparty`. The fix does not depend on the Clang version and does not affect other compilers. ### 2. `alc.cpp(1784)`: `std::views::transform` fails with MSVC STL 14.52+ **Cause.** With MSVC STL 14.52+ (Visual Studio Enterprise on the CI runner), deduction of `_Fn` fails for `&std::unique_ptr<...>::operator*` when passed to `std::views::transform`. The failing expression is: ```cpp std::views::transform(&ContextBase::EffectSlotCluster::operator*) ``` **Fix (`CMakeLists.txt`, `KYTY_CLANG_CL` only).** - `3rdparty/openal-soft/alc/alc.cpp` is copied into the build directory as `openal_alc_patched.cpp`. - The expression above is replaced with an equivalent lambda: ```cpp std::views::transform([](auto &c) -> auto& { return *c; }) ``` - The original `alc.cpp` is marked `HEADER_FILE_ONLY` for the `OpenAL` target, so only the patched copy is compiled. --- ## Linux (`clang++` + libstdc++ 14) ### 3. `mUpsampler.emplace()` fails in the effect sources **Cause.** Clang <= 19 with libstdc++ 14 evaluates `std::is_constructible_v<std::array<UpsampleParams, NumLines>>` as `false` when `UpsampleParams` is a nested struct with default member initializers (NSDMI) held inside `std::optional`. As a result, `mUpsampler.emplace()` fails to compile in: - `alc/effects/chorus.cpp` - `alc/effects/distortion.cpp` - `alc/effects/pshifter.cpp` - `alc/effects/fshifter.cpp` This is a compiler bug, so it cannot be fixed with a CMake option; it is worked around in the sources instead. **Fix (`CMakeLists.txt`).** The patching logic was extracted into a reusable function, `kyty_patch_openal_source`. For `LINUX` builds with `CLANG`: - The four files above are copied into the build directory. - In each copy, `mUpsampler.emplace()` is replaced with: ```cpp mUpsampler.emplace(decltype(mUpsampler)::value_type{}) ``` This constructs the object by move from a value-initialized aggregate, which avoids the zero-argument `is_constructible_v` check that Clang gets wrong. - The original files are marked `HEADER_FILE_ONLY` for the `OpenAL` target, so only the patched copies are compiled. ### 4. `CMAKE_C_COMPILER_AR-NOTFOUND`: missing LLVM archiver tools **Cause.** With `CMAKE_INTERPROCEDURAL_OPTIMIZATION=ON` and `clang-19`, CMake requires `llvm-ar-19` and `llvm-ranlib-19`. These are not installed by `apt-get install --no-install-recommends clang-19`. **Fix (`.github/workflows/build.yml`).** `llvm-19` was added to the build dependencies of the `linux` job. --- ## Files changed | File | Change | | --- | --- | | `CMakeLists.txt` | Force-included `openal_nonblocking_fix.h` for the `OpenAL` target on Clang (C++ only); patched copy of `alc.cpp` for `KYTY_CLANG_CL`; new function `kyty_patch_openal_source`; patched copies of `chorus.cpp`, `distortion.cpp`, `pshifter.cpp`, `fshifter.cpp` on Linux + Clang. Originals are marked `HEADER_FILE_ONLY` | | `.github/workflows/build.yml` | `linux` job installs `llvm-19` | ## Notes - Because the Linux workaround lives in CMake, local builds on Linux with Clang (including Clang 18) are covered as well, without requiring a specific compiler version. - Local LTO builds on Linux need the matching `llvm-ar` / `llvm-ranlib` (package `llvm-19`). - The `alc.cpp` and effect-source patches are text replacements on submodule files. After a submodule update, verify that the replaced expressions still exist; otherwise a patch becomes a silent no-op. - Alternatives considered for error 3: patching the submodule directly (rejected: fragile across submodule updates and modifies `3rdparty`), or switching the Linux job to GCC 14 (not affected by the bug). ## Testing - [x] Windows (`clang-cl`) build completes, `reverb.cpp` compiles - [x] Linux (`clang++-19`) build completes, `chorus.cpp` and `distortion.cpp` compile - [x] Other compilers/platforms are unaffected ## AI Use Gemini 4 Hydrogen was used to investigate the root cause of the problem and to write this documentation. Testing and code review were done by me personally.
Adjust OpenAL's NONBLOCKING macro for Clang builds.
Install and use Clang 19 explicitly in the Linux build workflow to keep compiler selection consistent.
Patch OpenAL's transform projection for Clang builds to avoid MSVC STL 14.52+ template deduction failures, and install LLVM 19 in CI.
Centralize OpenAL source patching and add a Linux workaround for Clang with libstdc++ 14, alongside the existing MSVC STL fix.
Install and verify `lld-19` in CI, and have CMake prefer the LLD executable matching the detected Clang major version, falling back to unversioned LLD when unavailable.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:22:37 +00:00
github manually merged commit 0545adc8c9 into gh-pr/2545/base 2026-11-26 10:22:40 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 17:55 UTC · original · edited 2026-11-25 01:09 UTC

Explain Change →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The Linux build workflow now adds the LLVM 23 apt repository and installs clang-23, lld-23, and llvm-23. It adds LLVM 23’s binary directory to GITHUB_PATH. CMake adds Clang-specific OpenAL compatibility patches, including a generated header and conditional source changes for clang-cl and Linux builds.

Suggested reviewers: nmzik

Change: Bug fix

Merge Risk: Low · up to 0545a

Two minor build-configuration gaps remain in the OpenAL Clang patch. A build directory containing spaces can break the forced-include on non-clang-cl Clang, and edits to the original alc.cpp may not refresh the patched copy on incremental builds. Neither affects normal CI builds, and both are quick to fix.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Fix build failures on Windows and Linux" matches the main change: the PR fixes four CI build failures (clang-cl on Windows and clang++ on Linux) through CMake and workflow changes. It is so…
Description check Passed The description is closely related to the changeset. It lists the four build failures, the CMakeLists.txt workarounds for OpenAL sources (NONBLOCKING header, alc.cpp lambda, effect-source upsampler pa…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Fix build failures on Windows and Linux" matches the main change: the PR fixes four CI build failures (clang-cl on Windows and clang++ on Linux) through CMake and workflow changes. It is somewhat broad and does not name the OpenAL-specific workarounds, but it refers to the real change and does not describe anything absent from the changeset. The PR objectives also use this title, though the commit message mentions an LLVM 23 toolchain change that the title does not cover.

Full details: Description check

Explanation

The description is closely related to the changeset. It lists the four build failures, the CMakeLists.txt workarounds for OpenAL sources (NONBLOCKING header, alc.cpp lambda, effect-source upsampler patches), the build.yml change that installs LLVM tooling, and the testing performed. It is detailed and on-topic.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 9cbbd97a3e and 0545adc8c9.

Files selected for processing: 2

  • .github/workflows/build.yml
  • CMakeLists.txt

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 17:55 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2545#issuecomment-7139900324) · edited 2026-11-25 01:09 UTC <!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/2545?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-buttons-v1/explain-change.svg" alt="Explain Change →" height="32"></picture></a> <!-- review_stack_entry_end --> <!-- This is an auto-generated comment: review paused by coderabbit.ai --> > [!NOTE] > ## Reviews paused > > It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the `reviews.auto_review.auto_pause_after_reviewed_commits` setting. > > - Last reviewed commit: 0545adc8c9a2141f9f777311c3660054fafcdc85 > > Use the following commands to manage reviews: > - `@coderabbitai resume` to resume automatic reviews. > - `@coderabbitai review` to trigger a single review. > > Use the checkboxes below for quick actions: > - [ ] <!-- {"checkboxId":"7f6cc2e2-2e4e-497a-8c31-c9e4573e93d1"} --> Resume reviews > - [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> Trigger review <!-- end of auto-generated comment: review paused by coderabbit.ai --> <!-- recent_review_status_start --> No actionable comments were generated in the recent review. <!-- recent_review_status_end --> <!-- walkthrough_start --> <details> <summary><strong>Walkthrough</strong></summary> <dl> <dd> <br> The Linux build workflow now adds the LLVM 23 apt repository and installs `clang-23`, `lld-23`, and `llvm-23`. It adds LLVM 23’s binary directory to `GITHUB_PATH`. CMake adds Clang-specific OpenAL compatibility patches, including a generated header and conditional source changes for `clang-cl` and Linux builds. **Suggested reviewers:** `nmzik` </dd> </dl> </details> <!-- walkthrough_end --> <!-- change_assessment_start --> <!-- change_assessment_commit:"0545adc8c9a2141f9f777311c3660054fafcdc85" --> <!-- change_assessment_priority:{"version":1,"urgency":"p2","manual":false} --> **Change:** Bug fix <!-- change_assessment_end --> <details> <summary><strong>Merge Risk:</strong> <strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/risk-low-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Low</strong> · up to <code>0545a</code></summary> <dl> <dd> <br> <!-- final_review_risk_start --> <!-- final_review_risk_label **Merge Risk:** **🔵 Low** · up to `0545a` --> <!-- final_review_risk_coverage:{"sourceCommitId":"0545adc8c9a2141f9f777311c3660054fafcdc85","coveredCommitId":"0545adc8c9a2141f9f777311c3660054fafcdc85","kind":"reviewed"} --> Two minor build-configuration gaps remain in the OpenAL Clang patch. A build directory containing spaces can break the forced-include on non-clang-cl Clang, and edits to the original alc.cpp may not refresh the patched copy on incremental builds. Neither affects normal CI builds, and both are quick to fix. <!-- final_review_risk_end --> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_start --> <details> <summary><strong>Pre-merge checks: <sup><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-counter-passed-14-v2.svg" width="14" height="14" align="middle" alt="Passed" title="Passed"></picture></sup> 4</strong></summary> <dl> <dd> <br> | Check name | Status | Explanation | | :------------------------ | :--------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The title "Fix build failures on Windows and Linux" matches the main change: the PR fixes four CI build failures (clang-cl on Windows and clang++ on Linux) through CMake and workflow changes. It is so… | | Description check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | The description is closely related to the changeset. It lists the four build failures, the CMakeLists.txt workarounds for OpenAL sources (NONBLOCKING header, alc.cpp lambda, effect-source upsampler pa… | | Linked Issues check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ![Passed](https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-passed.svg) | Check skipped because no linked issues were found for this pull request. | <details> <summary><strong>Full details: Title check</strong></summary> <dl> <dd> <br> **Explanation** The title "Fix build failures on Windows and Linux" matches the main change: the PR fixes four CI build failures (clang-cl on Windows and clang++ on Linux) through CMake and workflow changes. It is somewhat broad and does not name the OpenAL-specific workarounds, but it refers to the real change and does not describe anything absent from the changeset. The PR objectives also use this title, though the commit message mentions an LLVM 23 toolchain change that the title does not cover. </dd> </dl> </details> <details> <summary><strong>Full details: Description check</strong></summary> <dl> <dd> <br> **Explanation** The description is closely related to the changeset. It lists the four build failures, the CMakeLists.txt workarounds for OpenAL sources (NONBLOCKING header, alc.cpp lambda, effect-source upsampler patches), the build.yml change that installs LLVM tooling, and the testing performed. It is detailed and on-topic. </dd> </dl> </details> </dd> </dl> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- tips_start --> Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=2545)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary><strong>Share</strong></summary> <dl> <dd> <br> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </dd> </dl> </details> <!-- tips_end --> <!-- recent_review_start --> <h6> <details> <summary><strong><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Recent review info</strong></summary> <dl> <dd> <br> <!-- review_info_content --> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/30781dcda029cbd669aa81337ac2902c9c3015d8/.coderabbit.yaml>) - **Commit**: [30781dc](<https://github.com/KytyPS5/KytyPS5/commit/30781dcda029cbd669aa81337ac2902c9c3015d8>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `ef7d40bf-adb6-4c67-b48d-f631cdd24823` </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 9cbbd97a3e4acd67861226d3b07039e947a732ec and 0545adc8c9a2141f9f777311c3660054fafcdc85. </dd> </dl> </details> <details> <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 2</strong></summary> <dl> <dd> <br> * `.github/workflows/build.yml` * `CMakeLists.txt` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> </h6> <!-- recent_review_end -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 17:55 UTC · original · edited 2026-11-24 18:51 UTC
On .github/workflows/build.yml line 375 (outdated):

@@ -371,8 +371,8 @@ jobs:
             -DKYTY_BUILD_ORIGIN="$KYTY_BUILD_ORIGIN" \
             -DKYTY_BUILD_REPOSITORY="$KYTY_BUILD_REPOSITORY" \
             -DKYTY_RELEASE_TAG="${{ needs.metadata.outputs.release_tag }}" \
-            -DCMAKE_C_COMPILER=clang \
-            -DCMAKE_CXX_COMPILER=clang++ \
+            -DCMAKE_C_COMPILER=clang-19 \
+            -DCMAKE_CXX_COMPILER=clang++-19 \

Major · Stability & Availability · Quick win

Link Linux builds with an LLVM 19 linker when Clang 19 uses LTO.

The Linux job enables interprocedural optimization and compiles with clang-19. The kyty_emulator link then uses -fuse-ld=lld, which resolves to the ld.lld from the unversioned lld package. On Ubuntu 24.04, that package is LLVM 18. LLD 18 reading LTO bitcode from Clang 19 is an older-linker, newer-producer pairing, and LLVM does not support it. The link can fail, or it can produce miscompiled output.

Use an LLVM 19 linker for this link, and keep the linker major version equal to the Clang major version. The Ubuntu noble listing shows no lld-19 version, so set the package source for the LLVM 19 linker explicitly. The Verify toolchain step prints the linker version through ld.lld --version.

Tools

zizmor (1.32.0)

[warning] 1-543: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)


[warning] 303-445: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block

(excessive-permissions)

✅ Addressed in commit 9cbbd97

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 17:55 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2545#discussion_r4684273443) · edited 2026-11-24 18:51 UTC On `.github/workflows/build.yml` line 375 (outdated): ```diff @@ -371,8 +371,8 @@ jobs: -DKYTY_BUILD_ORIGIN="$KYTY_BUILD_ORIGIN" \ -DKYTY_BUILD_REPOSITORY="$KYTY_BUILD_REPOSITORY" \ -DKYTY_RELEASE_TAG="${{ needs.metadata.outputs.release_tag }}" \ - -DCMAKE_C_COMPILER=clang \ - -DCMAKE_CXX_COMPILER=clang++ \ + -DCMAKE_C_COMPILER=clang-19 \ + -DCMAKE_CXX_COMPILER=clang++-19 \ ``` <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/major-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Major** · **Stability & Availability** · **Quick win** **Link Linux builds with an LLVM 19 linker when Clang 19 uses LTO.** The Linux job enables interprocedural optimization and compiles with `clang-19`. The `kyty_emulator` link then uses `-fuse-ld=lld`, which resolves to the `ld.lld` from the unversioned `lld` package. On Ubuntu 24.04, that package is LLVM 18. LLD 18 reading LTO bitcode from Clang 19 is an older-linker, newer-producer pairing, and LLVM does not support it. The link can fail, or it can produce miscompiled output. Use an LLVM 19 linker for this link, and keep the linker major version equal to the Clang major version. The Ubuntu noble listing shows no `lld-19` version, so set the package source for the LLVM 19 linker explicitly. The `Verify toolchain` step prints the linker version through `ld.lld --version`. <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/wrench-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/wrench.svg" width="16" height="16" align="absmiddle" alt=""></picture> Tools</summary> <dl> <dd> <br> <details> <summary>zizmor (1.32.0)</summary> <dl> <dd> <br> [warning] 1-543: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) --- [warning] 303-445: overly broad permissions (excessive-permissions): default permissions used due to no permissions: block (excessive-permissions) </dd> </dl> </details> </dd> </dl> </details> <!-- fingerprinting:phantom:triton:okapi --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:fc088f7bc8497bd6bdd8111e --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit 9cbbd97
@ -193,0 +224,4 @@
)
else()
target_compile_options(OpenAL PRIVATE
"$<$<COMPILE_LANGUAGE:CXX>:SHELL:-include ${_kyty_openal_fix_header}>"
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 17:55 UTC · original

Minor · Functional Correctness · Quick win

Quote the header path inside the SHELL: option.

CMake parses SHELL: options with UNIX_COMMAND rules. The generated binary directory path is expanded before that parsing. A build directory that contains a space splits the -include path into two arguments. The compiler then cannot open the forced-include header, and OpenAL can fail to compile on non-clang-cl Clang. Paths without spaces are unaffected.

Quote the path inside the option string so it stays one argument:

Proposed fix

--- "a/CMakeLists.txt"
+++ "b/CMakeLists.txt"
@@ -201,7 +201,7 @@
 		)
 	else()
 		target_compile_options(OpenAL PRIVATE
-			"$<$<COMPILE_LANGUAGE:CXX>:SHELL:-include ${_kyty_openal_fix_header}>"
+			"$<$<COMPILE_LANGUAGE:CXX>:SHELL:-include \"${_kyty_openal_fix_header}\">"
 		)
 	endif()
 endif()
Committable suggestion

IMPORTANT
Review the replacement and indentation, then test before committing.

			"$<$<COMPILE_LANGUAGE:CXX>:SHELL:-include \"${_kyty_openal_fix_header}\">"
**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 17:55 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2545#discussion_r4684273470) <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor** · **Functional Correctness** · **Quick win** **Quote the header path inside the `SHELL:` option.** CMake parses `SHELL:` options with `UNIX_COMMAND` rules. The generated binary directory path is expanded before that parsing. A build directory that contains a space splits the `-include` path into two arguments. The compiler then cannot open the forced-include header, and OpenAL can fail to compile on non-`clang-cl` Clang. Paths without spaces are unaffected. Quote the path inside the option string so it stays one argument: <details> <summary>Proposed fix</summary> <dl> <dd> <br> ```diff --- "a/CMakeLists.txt" +++ "b/CMakeLists.txt" @@ -201,7 +201,7 @@ ) else() target_compile_options(OpenAL PRIVATE - "$<$<COMPILE_LANGUAGE:CXX>:SHELL:-include ${_kyty_openal_fix_header}>" + "$<$<COMPILE_LANGUAGE:CXX>:SHELL:-include \"${_kyty_openal_fix_header}\">" ) endif() endif() ``` </dd> </dl> </details> <!-- suggestion_start --> <details> <summary>Committable suggestion</summary> <dl> <dd> <br> > <picture><img src="https://storage.googleapis.com/coderabbit_public_assets/pre-merge-checks-warning.svg" width="20" height="20" align="absmiddle" alt=""></picture> **IMPORTANT** > Review the replacement and indentation, then test before committing. ```suggestion "$<$<COMPILE_LANGUAGE:CXX>:SHELL:-include \"${_kyty_openal_fix_header}\">" ``` </dd> </dl> </details> <!-- suggestion_end --> <!-- fingerprinting:phantom:medusa:beignet55 --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:27d5c5fe147aa60af187119d --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 17:55 UTC · original · reviewed

Actionable comments posted: 2

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 30781dcda0 and d7edb04eb6.

Files selected for processing: 2

  • .github/workflows/build.yml
  • CMakeLists.txt

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 17:55 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2545#pullrequestreview-6044570188) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 2** <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/30781dcda029cbd669aa81337ac2902c9c3015d8/.coderabbit.yaml>) - **Commit**: [30781dc](<https://github.com/KytyPS5/KytyPS5/commit/30781dcda029cbd669aa81337ac2902c9c3015d8>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `43a6734c-9cca-40ab-be28-58c3c43cf93f` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 30781dcda029cbd669aa81337ac2902c9c3015d8 and d7edb04eb6bf5de9e56a670528d74bf081b5a9cb. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 2</summary> <dl> <dd> <br> * `.github/workflows/build.yml` * `CMakeLists.txt` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=691937c2-42ff-407e-ac4e-5a3d86ec5242 attempt=b3013ea1-5bc3-453f-b07e-556f98dd22d2 batch=1/1 -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 18:27 UTC · original · reviewed

Actionable comments posted: 1

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d7edb04eb6 and eb62622d26.

Files selected for processing: 2

  • .github/workflows/build.yml
  • CMakeLists.txt

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 18:27 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2545#pullrequestreview-6045041742) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/30781dcda029cbd669aa81337ac2902c9c3015d8/.coderabbit.yaml>) - **Commit**: [30781dc](<https://github.com/KytyPS5/KytyPS5/commit/30781dcda029cbd669aa81337ac2902c9c3015d8>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `d6749b17-5c82-4bc8-9447-152e2bd553fe` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between d7edb04eb6bf5de9e56a670528d74bf081b5a9cb and eb62622d26959e7fec409e3973c8f57d6ead984c. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 2</summary> <dl> <dd> <br> * `.github/workflows/build.yml` * `CMakeLists.txt` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=66f64b1f-08f7-4b43-81b3-01729844461b attempt=786980f7-099f-4e2a-b3d2-9e9213a5454a batch=1/1 -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 18:27 UTC · original
On CMakeLists.txt line 205 (outdated):

@@ -190,6 +190,42 @@ option(KYTY_BUILD_LAUNCHER "Build Qt launcher" ON)
 config_compiler_and_linker()
 
 add_subdirectory("${KYTY_THIRD_PARTY_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/3rdparty")
+if(TARGET OpenAL AND CLANG)
+	set(_kyty_openal_fix_header "${CMAKE_CURRENT_BINARY_DIR}/openal_nonblocking_fix.h")
+	file(GENERATE OUTPUT "${_kyty_openal_fix_header}" CONTENT
+		"#pragma once\n#include \"opthelpers.h\"\n#undef NONBLOCKING\n#define NONBLOCKING\n"
+	)
+	if(KYTY_CLANG_CL)
+		target_compile_options(OpenAL PRIVATE
+			$<$<COMPILE_LANGUAGE:CXX>:/FI${_kyty_openal_fix_header}>
+		)
+		# MSVC STL 14.52+ breaks template argument deduction for &std::unique_ptr::operator* in views::transform.
+		set(_kyty_openal_alc_orig "${KYTY_THIRD_PARTY_DIR}/openal-soft/alc/alc.cpp")
+		set(_kyty_openal_alc_patched "${CMAKE_CURRENT_BINARY_DIR}/openal_alc_patched.cpp")
+		file(READ "${_kyty_openal_alc_orig}" _kyty_openal_alc_src)

Minor · Functional Correctness · Quick win

Track changes to the original alc.cpp.

After configuration, an edit to alc/alc.cpp does not refresh the patched copy. The original is now header-only, and file(READ) does not register a configuration dependency. An incremental build can therefore keep compiling the previous contents. (raw.githubusercontent.com)

Append _kyty_openal_alc_orig to the directory’s CMAKE_CONFIGURE_DEPENDS property before reading it. This makes source edits rerun the replacement while preserving copy_if_different for unchanged contents. (cmake.org)

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 18:27 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2545#discussion_r4684666934) On `CMakeLists.txt` line 205 (outdated): ```diff @@ -190,6 +190,42 @@ option(KYTY_BUILD_LAUNCHER "Build Qt launcher" ON) config_compiler_and_linker() add_subdirectory("${KYTY_THIRD_PARTY_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/3rdparty") +if(TARGET OpenAL AND CLANG) + set(_kyty_openal_fix_header "${CMAKE_CURRENT_BINARY_DIR}/openal_nonblocking_fix.h") + file(GENERATE OUTPUT "${_kyty_openal_fix_header}" CONTENT + "#pragma once\n#include \"opthelpers.h\"\n#undef NONBLOCKING\n#define NONBLOCKING\n" + ) + if(KYTY_CLANG_CL) + target_compile_options(OpenAL PRIVATE + $<$<COMPILE_LANGUAGE:CXX>:/FI${_kyty_openal_fix_header}> + ) + # MSVC STL 14.52+ breaks template argument deduction for &std::unique_ptr::operator* in views::transform. + set(_kyty_openal_alc_orig "${KYTY_THIRD_PARTY_DIR}/openal-soft/alc/alc.cpp") + set(_kyty_openal_alc_patched "${CMAKE_CURRENT_BINARY_DIR}/openal_alc_patched.cpp") + file(READ "${_kyty_openal_alc_orig}" _kyty_openal_alc_src) ``` <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor** · **Functional Correctness** · **Quick win** **Track changes to the original `alc.cpp`.** After configuration, an edit to `alc/alc.cpp` does not refresh the patched copy. The original is now header-only, and `file(READ)` does not register a configuration dependency. An incremental build can therefore keep compiling the previous contents. ([raw.githubusercontent.com](https://raw.githubusercontent.com/Kitware/CMake/v3.19.8/Source/cmFileCommand.cxx)) Append `_kyty_openal_alc_orig` to the directory’s `CMAKE_CONFIGURE_DEPENDS` property before reading it. This makes source edits rerun the replacement while preserving `copy_if_different` for unchanged contents. ([cmake.org](https://cmake.org/cmake/help/v3.19/prop_dir/CMAKE_CONFIGURE_DEPENDS.html)) <!-- fingerprinting:phantom:poseidon:wombat61 --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:3c50369048716fafef4c2565 --> <!-- This is an auto-generated comment by CodeRabbit -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 18:54 UTC · original · edited 2026-11-25 01:04 UTC
On CMakeLists.txt line 137 (outdated):

@@ -131,7 +131,13 @@ string(TOLOWER ${KYTY_COMPILER} KYTY_COMPILER_ID)
 string(TOLOWER ${KYTY_LINKER} KYTY_LINKER_ID)
 
 if (CLANG AND (KYTY_LINKER STREQUAL LLD))
-	set(KYTY_LD_OPTIONS "-fuse-ld=lld")
+	string(REGEX REPLACE "\\..*" "" _kyty_clang_major "${CMAKE_CXX_COMPILER_VERSION}")
+	find_program(KYTY_LLD_VERSIONED NAMES "ld.lld-${_kyty_clang_major}")
+	if (KYTY_LLD_VERSIONED)
+		set(KYTY_LD_OPTIONS "-fuse-ld=lld-${_kyty_clang_major}")

Minor · Functional Correctness · Quick win

Preserve the discovered linker path.

If ld.lld-19 exists only in a directory supplied through CMAKE_PROGRAM_PATH, find_program succeeds. This line then discards that directory. CMake explicitly searches CMAKE_PROGRAM_PATH. (cmake.org)

Clang 19 searches its own program paths and PATH for -fuse-ld=lld-19. In this configuration, linking fails even when the previous unversioned linker works. (raw.githubusercontent.com)

Pass the quoted KYTY_LLD_VERSIONED path through --ld-path, with -fuse-ld=lld to retain the linker flavor. This also works when the executable is on PATH. (raw.githubusercontent.com)

✅ Addressed in commit 0545adc

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 18:54 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2545#discussion_r4684972211) · edited 2026-11-25 01:04 UTC On `CMakeLists.txt` line 137 (outdated): ```diff @@ -131,7 +131,13 @@ string(TOLOWER ${KYTY_COMPILER} KYTY_COMPILER_ID) string(TOLOWER ${KYTY_LINKER} KYTY_LINKER_ID) if (CLANG AND (KYTY_LINKER STREQUAL LLD)) - set(KYTY_LD_OPTIONS "-fuse-ld=lld") + string(REGEX REPLACE "\\..*" "" _kyty_clang_major "${CMAKE_CXX_COMPILER_VERSION}") + find_program(KYTY_LLD_VERSIONED NAMES "ld.lld-${_kyty_clang_major}") + if (KYTY_LLD_VERSIONED) + set(KYTY_LD_OPTIONS "-fuse-ld=lld-${_kyty_clang_major}") ``` <!-- coderabbit-ai-generated:v1 --> **<picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/amber-16.svg" width="16" height="16" align="absmiddle" alt=""></picture> Minor** · **Functional Correctness** · **Quick win** **Preserve the discovered linker path.** If `ld.lld-19` exists only in a directory supplied through `CMAKE_PROGRAM_PATH`, `find_program` succeeds. This line then discards that directory. CMake explicitly searches `CMAKE_PROGRAM_PATH`. ([cmake.org](https://cmake.org/cmake/help/v3.19/command/find_program.html)) Clang 19 searches its own program paths and `PATH` for `-fuse-ld=lld-19`. In this configuration, linking fails even when the previous unversioned linker works. ([raw.githubusercontent.com](https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-19.1.7/clang/lib/Driver/Driver.cpp)) Pass the quoted `KYTY_LLD_VERSIONED` path through `--ld-path`, with `-fuse-ld=lld` to retain the linker flavor. This also works when the executable is on `PATH`. ([raw.githubusercontent.com](https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-19.1.7/clang/lib/Driver/ToolChain.cpp)) <!-- fingerprinting:phantom:poseidon:wombat61 --> <!-- cr-indicator-types:potential_issue --> <!-- cr-comment:v1:8557835b21a244e65ded955e --> <!-- This is an auto-generated comment by CodeRabbit --> ✅ Addressed in commit 0545adc
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-11-24 18:54 UTC · original · reviewed

Actionable comments posted: 1

Review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 2474ac1110 and 9cbbd97a3e.

Files selected for processing: 2

  • .github/workflows/build.yml
  • CMakeLists.txt

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-11-24 18:54 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/2545#pullrequestreview-6045403852) · **reviewed** <!-- coderabbit-ai-generated:v1 --> **Actionable comments posted: 1** <h6> <details> <summary><picture><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/info.svg" width="12" height="12" align="absmiddle" alt=""></picture> Review info</summary> <dl> <dd> <br> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</summary> <dl> <dd> <br> - **Source mode**: Auto - **Repository**: [KytyPS5/KytyPS5](<https://github.com/KytyPS5/KytyPS5>) - **Branch**: [main](<https://github.com/KytyPS5/KytyPS5/tree/main>) - **File**: [.coderabbit.yaml](<https://github.com/KytyPS5/KytyPS5/blob/30781dcda029cbd669aa81337ac2902c9c3015d8/.coderabbit.yaml>) - **Commit**: [30781dc](<https://github.com/KytyPS5/KytyPS5/commit/30781dcda029cbd669aa81337ac2902c9c3015d8>) - **Layers**: Repository YAML - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `1f86f76a-e15c-4f58-a7d3-384cc706d077` </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</summary> <dl> <dd> <br> Reviewing files that changed from the base of the PR and between 2474ac1110b1161c7151899c3e5fe1e2fc2ba73d and 9cbbd97a3e4acd67861226d3b07039e947a732ec. </dd> </dl> </details> <details> <summary><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 2</summary> <dl> <dd> <br> * `.github/workflows/build.yml` * `CMakeLists.txt` </dd> </dl> </details> **Included review availability:** This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. </dd> </dl> </details> </h6> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=a70d71d8-e39e-4ace-891c-997cbccb191f attempt=2406772e-59f1-42a2-821a-ee277037d740 batch=1/1 -->
This discussion has been locked. Commenting is limited to contributors.
No description provided.