build: preserve timestamps when stripping files (#22094) (#22257)

* build: preserve timestamps when stripping files

Resolves an issue where the binaries in mksnapshot.zip were not getting stripped.

Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
(cherry picked from commit 5e49aafe55)
This commit is contained in:
John Kleinschmidt
2020-02-18 13:56:10 -05:00
committed by GitHub
parent 360e8a2eb8
commit 51504aee64

View File

@@ -22,7 +22,7 @@ def strip_binary(binary_path, target_cpu):
strip = 'mips64el-redhat-linux-strip'
else:
strip = 'strip'
execute([strip, binary_path])
execute([strip, '--preserve-dates', binary_path])
def main():
args = parse_args()