Skip to content

unify(legacy-profiler): Make both games inherit legacy profiler - #3075

Closed
Jaredl-Dev wants to merge 1 commit into
TheSuperHackers:mainfrom
Jaredl-Dev:unify/profilelegacy
Closed

unify(legacy-profiler): Make both games inherit legacy profiler#3075
Jaredl-Dev wants to merge 1 commit into
TheSuperHackers:mainfrom
Jaredl-Dev:unify/profilelegacy

Conversation

@Jaredl-Dev

Copy link
Copy Markdown

This makes both GameEngine builds inherit core_profile_legacy and declares core_debug as its private dependency.

Prerequisite for #3070

#3070 moves Shell.cpp into Core, where profile builds call Profile::StopRange("init").

Zero Hour already linked the legacy profiler, but Generals did not, causing an unresolved Profile::StopRange symbol when linking generalsv.exe. This PR provides the shared dependencies required by #3070.

Verification

Jaredl-Dev added a commit to Jaredl-Dev/GeneralsGameCode that referenced this pull request Aug 7, 2026
@Jaredl-Dev
Jaredl-Dev force-pushed the unify/profilelegacy branch 2 times, most recently from bbaf309 to 2f3f26a Compare August 7, 2026 21:17
@Jaredl-Dev Jaredl-Dev changed the title unify(profile): Make both games inherit legacy profiler unify(legacy-profiler): Make both games inherit legacy profiler Aug 7, 2026
@Jaredl-Dev
Jaredl-Dev force-pushed the unify/profilelegacy branch from 2f3f26a to 919d16e Compare August 7, 2026 21:24
)

target_link_libraries(core_profile_legacy PRIVATE
core_debug

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is right.

Should mirror GeneralsMD first. core_debug and core_profile_legacy is linked in 3 game targets.

@Jaredl-Dev Jaredl-Dev Aug 8, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps I should revise this PR to implement the suggestion from #3070 (comment), and then move the changes to Core in a third commit within #3070?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not need to be a separate commit. Whereever you merge the profile code to Generals, just merge the lib linking as well.

@xezon xezon closed this Aug 8, 2026
@Jaredl-Dev
Jaredl-Dev deleted the unify/profilelegacy branch August 8, 2026 18:11
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.

2 participants