build: preserve timestamps when stripping files (#22094)
* build: preserve timestamps when stripping files Resolves an issue where the binaries in mksnapshot.zip were not getting stripped. * Add missing comma * Update script/strip-binaries.py Co-Authored-By: Jeremy Apthorp <jeremya@chromium.org> * Don't try to run strip on macOS Co-authored-by: Jeremy Apthorp <nornagon@nornagon.net>
This commit is contained in:
parent
ea89120c9e
commit
5e49aafe55
2 changed files with 9 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue