Commit 275bd03
committed
rust: workaround --print file-names emitting staticlibs / dylibs.
This fixes cargo check in mozilla-central. The issue is that rustc --print
file-names emits a somewhat poor approximation of what's actually going to be
emitted.
So for a staticlib crate, it will also print the staticlib file, which is not
great.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1612855#c2 for a more
straight-forward explanation of the failure case.
Sccache would try to find the library and fail, erroring as a consequence.
Pile up on the existing workaround for rmeta files not showing up
(rust-lang/rust#54852) by removing files that are not
metadata when we only request metadata.
rust-lang/rust#68799 contains a rust-side fix that would
also fix this.1 parent fca8410 commit 275bd03
1 file changed
+29
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
1168 | 1188 | | |
1169 | 1189 | | |
1170 | 1190 | | |
| |||
1186 | 1206 | | |
1187 | 1207 | | |
1188 | 1208 | | |
| 1209 | + | |
1189 | 1210 | | |
1190 | | - | |
| 1211 | + | |
| 1212 | + | |
| 1213 | + | |
1191 | 1214 | | |
1192 | 1215 | | |
1193 | 1216 | | |
| |||
1223 | 1246 | | |
1224 | 1247 | | |
1225 | 1248 | | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | | - | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
1230 | 1253 | | |
1231 | 1254 | | |
1232 | 1255 | | |
| |||
2673 | 2696 | | |
2674 | 2697 | | |
2675 | 2698 | | |
2676 | | - | |
| 2699 | + | |
2677 | 2700 | | |
2678 | 2701 | | |
2679 | 2702 | | |
| |||
0 commit comments