coff linker: don't check the time

compiler toolchains have no business knowing what time it is
This commit is contained in:
Andrew Kelley 2025-10-13 22:10:29 -07:00
parent 0732ff2263
commit 79a59c5165

View file

@ -610,7 +610,7 @@ fn create(
.Obj => false,
};
const machine = target.toCoffMachine();
const timestamp: u32 = if (options.repro) 0 else @truncate(@as(u64, @bitCast(std.time.timestamp())));
const timestamp: u32 = 0;
const major_subsystem_version = options.major_subsystem_version orelse 6;
const minor_subsystem_version = options.minor_subsystem_version orelse 0;
const magic: std.coff.OptionalHeader.Magic = switch (target.ptrBitWidth()) {