cmake: preserve spaces in clang-cl linker paths #26

Manually merged
github merged 1 commit from gh-pr/26/head into gh-pr/26/base 2026-11-26 09:09:10 +00:00
Owner

@⁠idyllize on GitHub · 2026-07-16 20:16 UTC · original
codex/fix/clang-cl-link-paths → main · +6 −1 · 1 files · 1 commits · merged 2026-08-02 02:45 UTC

Summary

Pass linker flags as individual CMake options so PDB and linker map paths remain intact when the build directory contains spaces.

The existing LINK_FLAGS string splits these paths before the final link. This change uses target_link_options so CMake passes each option correctly.

Testing

The failure reproduced in two clean Release configurations. The fixed branch completed a Release build in a path containing spaces, installation succeeded, the launcher started correctly, and all ten existing test executables passed.

AI disclosure

I used AI to help investigate the failure, prepare the change, and run the verification commands. I reviewed the change, reproduction evidence, test results, and this pull request text before submission.

**@⁠idyllize** on GitHub · 2026-07-16 20:16 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/26) `codex/fix/clang-cl-link-paths` → `main` · +6 −1 · 1 files · 1 commits · merged 2026-08-02 02:45 UTC ## Summary Pass linker flags as individual CMake options so PDB and linker map paths remain intact when the build directory contains spaces. The existing `LINK_FLAGS` string splits these paths before the final link. This change uses `target_link_options` so CMake passes each option correctly. ## Testing The failure reproduced in two clean Release configurations. The fixed branch completed a Release build in a path containing spaces, installation succeeded, the launcher started correctly, and all ten existing test executables passed. ## AI disclosure I used AI to help investigate the failure, prepare the change, and run the verification commands. I reviewed the change, reproduction evidence, test results, and this pull request text before submission.
Pass linker flags as individual options so CMake keeps the PDB and lld map paths intact when the build directory contains spaces.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:09:08 +00:00
github manually merged commit 0dc9fc765b into gh-pr/26/base 2026-11-26 09:09:10 +00:00
Author
Owner

@⁠Nmzik on GitHub · 2026-07-29 06:09 UTC · original · approved these changes

Reviewed the complete change. Passing the clang-cl linker switches as separate target options correctly preserves paths containing spaces; no actionable issues found.

**@⁠Nmzik** on GitHub · 2026-07-29 06:09 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/26#pullrequestreview-4804591093) · **approved these changes** Reviewed the complete change. Passing the clang-cl linker switches as separate target options correctly preserves paths containing spaces; no actionable issues found.
This discussion has been locked. Commenting is limited to contributors.
No description provided.