Commit c53d156
committed
Bug 1945694 - build(rust): upgrade
`cc` upstream broke a few things that have been handled by other patches
motivated specifically by this upgrade:
1. `cc::Build` now rejects unknown targets not baked in. This breaks
`swgl`'s usage of the `SWGL` target. We migrated away from this
behavior in D235480.
2. `cc::Build::is_like_msvc`'s underlying logic changed, and now does
not return `true`. This has been worked around in D236305, and will
be removed after this patch in D236650.
3. PGO flag inheritance changed, which required us to explicitly pass
some PTO- and LTO-related flags to keep compiling. This has been
adjusted in D236966.
These are handled, and there should be no concern (finally) in landing
this. 🫡 Woot!
Differential Revision: https://phabricator.services.mozilla.com/D236957cc 1.0.89 → 1.2.12 r=#supply-chain-reviewers,glandium1 parent 0778a8e commit c53d156
File tree
28 files changed
+7452
-1839
lines changed- supply-chain
- third_party/rust/cc
- src
- parallel
- target
- windows
28 files changed
+7452
-1839
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1097 | 1097 | | |
1098 | 1098 | | |
1099 | 1099 | | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1100 | 1110 | | |
1101 | 1111 | | |
1102 | 1112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments