Skip to content

Commit

Permalink
Attempt to make the Proguard output deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Jun 18, 2024
1 parent 4f17e4b commit a8a7d38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions third_party/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,12 @@ genrule(
-libraryjars '<java.home>/jmods/java.base.jmod(!**.jar;!module-info.class)' \
@$(location fastutil.proguard) \
| tail -n +2 # Skip the "ProGuard, version X" line
# Null out the file times stored in the jar to make the output reproducible.
TMPDIR=$$(mktemp -d)
trap 'rm -rf $$TMPDIR' EXIT
unzip -q $@ -d $$TMPDIR
find $$TMPDIR -exec touch -t 197001010000 {} +
zip -qr $@ -D $$TMPDIR
""",
tools = [
"fastutil.proguard",
Expand Down

0 comments on commit a8a7d38

Please sign in to comment.