Skip to content

updater: Update CMake to make builds more reproducible#13146

Open
RytoEX wants to merge 1 commit intoobsproject:masterfrom
RytoEX:update-updater-cmake
Open

updater: Update CMake to make builds more reproducible#13146
RytoEX wants to merge 1 commit intoobsproject:masterfrom
RytoEX:update-updater-cmake

Conversation

@RytoEX
Copy link
Member

@RytoEX RytoEX commented Feb 20, 2026

Description

Strip the PDB. Provide an alternative path for the PDB.

We already use /PDBALTPATH for set_target_properties_obs, but this target understandably does not use that.

Use an undocumented MSVC linker flag to not emit tool version info.

Motivation and Context

Discovered while working on other changes to the updater. Don't want to have to do these steps manually.

How Has This Been Tested?

Tested the build locally and confirmed the link options made it into the project and applied. Will do an updater test run with this and #13137 later.

Types of changes

  • Tweak (non-breaking change to improve existing functionality)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

Strip the PDB. Provide an alternate path for the PDB.

We already use /PDBALTPATH for set_target_properties_obs, but this
target understandably does not use that.

Use an undocumented MSVC linker flag to not emit tool version info.
@RytoEX RytoEX self-assigned this Feb 20, 2026
@RytoEX RytoEX added Enhancement Improvement to existing functionality Windows Affects Windows labels Feb 20, 2026
@RytoEX
Copy link
Member Author

RytoEX commented Feb 20, 2026

Will do an updater test run with this and #13137 later.

Tested an update from 32.0.2 to 32.0.4 and it worked fine. Tested an update from 32.0.4 to 32.1.0-rc1 and it also worked fine.

$<$<CONFIG:DEBUG>:/NODEFAULTLIB:LIBCMT>
/PDBALTPATH:updater.pdb
/PDBSTRIPPED:updater.pdb
/EMITTOOLVERSIONINFO:NO
Copy link
Member

Choose a reason for hiding this comment

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

This one should probably be set in the compiler options for the entire project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Improvement to existing functionality Windows Affects Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments