Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.31 KB

README.md

File metadata and controls

28 lines (18 loc) · 1.31 KB

deterministic-builds-msvc

Utility for creating deterministic builds under Microsoft Visual C++

Target features

  • Modify signatures for outputs and PDB
  • Modify date times in outputs and PDB
  • Modify __DATE__, __TIME__ and __TIMESTAMP__ to custom date
  • Modify __FILE__ macro to remove full path

References

MSVC Compiler/Linker flags

  • /experimental:deterministic - expermental flag - deterministic builds (do not modify any macro)
  • /Brepro - undocumented linker & compiler flag sets __DATA__="1", __TIME__="1", __TIMESTAMP="1"
  • /d1trimfile:<path> - trim source path from __FILE__ macro & pdb file location

Related projects

References