diff --git a/tools/strip-lib.py b/tools/strip-lib.py index f783d81..bc79462 100644 --- a/tools/strip-lib.py +++ b/tools/strip-lib.py @@ -1,10 +1,10 @@ -# nulls the timestamp filed in a windows .lib archive, -# making the lib reproducable. +# nulls the timestamp field in a windows .lib archive, +# making the lib reproducible. # the time is the TimeDateStamp in the COFF file header, four bytes at offset 4 # See https://blog.conan.io/2019/09/02/Deterministic-builds-with-C-C++.html # also: https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#archive-library-file-format # -# There are some additional fixes added for reproducability, such as fixing the zero-padding of names in the coff +# There are some additional fixes added for reproducibility, such as fixing the zero-padding of names in the coff # section headers. import struct @@ -82,7 +82,7 @@ def read_lib(fp): print("longnames", result["longnames"]) h = None - # now read the headers, possibly we alread read one above. + # now read the headers, possibly we already read one above. while True: if h is None: h = header_read(fp) @@ -202,13 +202,13 @@ def first_lm_write(fp, lm): def second_lm_read(fp): # number of members - m = struct.unpack("