Browse Source

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

* build: preserve timestamps when stripping files

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

Co-authored-by: Jeremy Apthorp <[email protected]>
(cherry picked from commit 5e49aafe55137d5e3bc80c9ac9a8562db550f984)

Co-authored-by: John Kleinschmidt <[email protected]>
trop[bot] 5 years ago
parent
commit
9b52ee4e86
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/strip-binaries.py

+ 1 - 1
script/strip-binaries.py

@@ -21,7 +21,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()