Commit e27e32c
[rust] Rebuild libclang dependents on clang rolls
Sometimes clang libraries can be added or removed, so we need to ensure
we rebuild libclang's dependencies whenever clang rolls. Previously we
(effectively) expanded *.a into a .rsp file which wouldn't necessarily
be updated in these circumstances, leading to stale information and
potential build failure.
This CL contains two significant changes:
* We rerun find_clanglibs.py whenever the clang revision changes;
* We cease to generate a .rsp file and instead generate a synthetic Rust
static library.
The reason for this second change is that the names of the various
clang libraries were persisted in intermediate .rlib files as metadata.
We therefore needed to force rebuild of every dependent .rlib, not
just the final linker invocation, when the clang libraries were
updated. Altering 'inputs' for many such rlib targets would be fragile;
instead, have them all (transitively) depend on a static library.
Bug: 1296236
Change-Id: Iea406b2394bbd2231ca8f4cb1b367666277fff9a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3516695
Reviewed-by: danakj <[email protected]>
Commit-Queue: Adrian Taylor <[email protected]>
Cr-Commit-Position: refs/heads/main@{#979978}
NOKEYCHECK=True
GitOrigin-RevId: f8b3a9a06116a0d2a9d87473eac635a2605577e31 parent dee3a2c commit e27e32c
File tree
2 files changed
+46
-0
lines changed- clang_sys/v1
- crate/src
- patches
2 files changed
+46
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
37 | 48 | | |
38 | 49 | | |
39 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments