From 2053ab740dbd6638129a8e538f7a34c278670106 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 14 Sep 2026 21:34:23 +0200 Subject: [PATCH] Build the native QUIC connector reproducibly with /Brepro b85a828 changed x86_64/gamecult_mesh_quic_native.dll with no native source change. The two copies differ in six bytes: the PE header TimeDateStamp and the debug directory timestamp. The MSVC link stamps the build time, so every -UpdateTemplate run rewrote the committed DLL. /Brepro on compile and link replaces the timestamps with content hashes. Two clean builds from an emptied build root now produce identical bytes, and the DLL embeds no build path. The committed DLL changes once to the reproducible form; after that the release byte check covers it like the managed plugins. Co-Authored-By: Claude Opus 5 --- native/GameCult.Mesh.Quic.Native/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/native/GameCult.Mesh.Quic.Native/CMakeLists.txt b/native/GameCult.Mesh.Quic.Native/CMakeLists.txt index 2850951d..dcb3014c 100644 --- a/native/GameCult.Mesh.Quic.Native/CMakeLists.txt +++ b/native/GameCult.Mesh.Quic.Native/CMakeLists.txt @@ -14,6 +14,9 @@ target_compile_definitions(gamecult_mesh_quic_native PRIVATE GAMECULT_MESH_QUIC_ target_include_directories(gamecult_mesh_quic_native PRIVATE "${MSQUIC_ROOT}/include") target_link_directories(gamecult_mesh_quic_native PRIVATE "${MSQUIC_ROOT}/lib/x64") target_link_libraries(gamecult_mesh_quic_native PRIVATE msquic crypt32 bcrypt) +# The DLL is committed beside its source, so a rebuild must reproduce it: /Brepro drops the link timestamps. +target_compile_options(gamecult_mesh_quic_native PRIVATE /Brepro) +target_link_options(gamecult_mesh_quic_native PRIVATE /Brepro) set_target_properties(gamecult_mesh_quic_native PROPERTIES OUTPUT_NAME "gamecult_mesh_quic_native"