-
Notifications
You must be signed in to change notification settings - Fork 0
/
fixup.sh
executable file
·16 lines (13 loc) · 746 Bytes
/
fixup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env bash
# Cargo has an option to strip absolute path prefixes in dep info .d files
# But this only takes in one path so you can only strip either the working directory
# or cargo registry, but not both
# See https://doc.rust-lang.org/cargo/reference/config.html#builddep-info-basedir
find target -name "*.d" -delete
# The root-output file contains the absolute path to OUT_DIR, and cannot be remapped
find target -name "root-output" -delete
# Files under .fingerprint contains commandlines used to invoke rustc
# We cannot yet guarantee that this is deterministic since we need to pass in local
# paths to --remap-path-prefix
# This may be fixed once we do sanitisation by default
find target -wholename "*/.fingerprint/*" -delete