cmake: pass -Map as discrete link option on non-clang-cl builds #806
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!806
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/806/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@6d4m on GitHub · 2026-09-24 13:56 UTC · original
6d4m:cmake-link-map-path-spaces→main· +4 −1 · 1 files · 1 commits · merged 2026-09-24 17:23 UTCSummary
Completes the non-clang-cl side of #26. The
WIN32 OR LINUXbranch still passed the linker map path throughLINK_FLAGS, a space-delimited property, so a build path containing spaces broke the final link. The-Wl,-Map=<path>option is now passed viatarget_link_options, which CMake forwards to the linker as a single argument.Problem
With the source and build directories under a path containing a space (e.g.
/home/user/Documents/future pro/KytyPS5), a clean Release build failed at the final emulator link:LINK_FLAGSis split on whitespace, so.../future pro/...mapbecame two arguments and lld received a truncated path (pro/...).Testing
kyty_emulatorand the launcher run; Ghost Song (PPSA09232) boots to controllable gameplay.AI disclosure
I used AI (OpenCode) to investigate the failure, prepare the patch and run the build. I reviewed the change, the reproduction and this description before submitting.
@coderabbitai[bot] on GitHub · 2026-09-24 13:59 UTC · original
Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
Review profile: CHILL
Plan: Advanced
Run ID:
5735d7ce-6ebf-45c2-b940-dbca9ba1c94f📥 Commits
Reviewing files that changed from the base of the PR and between
2aaf0c9ba3and303bdce32a.📒 Files selected for processing (1)
CMakeLists.txtIncluded review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
📝 Walkthrough
Walkthrough
For
kyty_emulatoron Windows and Linux, the map-file linker option is now passed separately throughtarget_link_options.KYTY_LD_OPTIONSremains inLINK_FLAGS.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
303bdThe map-file option is passed separately while existing linker settings remain intact; no actionable merge risk is evident.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
-Maplinker option separately for non-clang-clbuilds.target_link_optionsfix, and the reported validation results.Comment
@coderabbitai helpto get the list of available commands.