From 3786fa3d3e115ccdad6d6f7b32a455e96b007ced Mon Sep 17 00:00:00 2001 From: Ryan Foster Date: Thu, 19 Feb 2026 19:50:33 -0500 Subject: [PATCH] updater: Update CMake to make builds more reproducible 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. --- frontend/updater/CMakeLists.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/updater/CMakeLists.txt b/frontend/updater/CMakeLists.txt index 3dd0ee9b2..1b6dbae46 100644 --- a/frontend/updater/CMakeLists.txt +++ b/frontend/updater/CMakeLists.txt @@ -32,7 +32,13 @@ target_link_libraries( ) # zstd is hardcoded with /DEFAULTLIB:LIBCMT -target_link_options(updater PRIVATE $<$:/NODEFAULTLIB:LIBCMT>) +target_link_options( + updater + PRIVATE + $<$:/NODEFAULTLIB:LIBCMT> + "$<$,$>:/PDBALTPATH:$>" + "$<$,$>:/PDBSTRIPPED:$>" +) set_target_properties( updater