chore: bump to cc@1.4.3 for rustc_llvm and library - #161260
Conversation
Old cc-rs derives this from the `-Clto` rustflag on its own. `cc@1.2.39` starts gating that behind `-Clinker-plugin-lto`, which bootstrap doesn't pass. Therefore, we need to pass this flag explicitly to keep LTO mode
Also pulls in * find-msvc-tools 0.1.5 -> 0.1.11 * shlex 2.0.1 (new transitive dep of cc)
Also pulls in * find-msvc-tools 0.1.5 -> 0.1.11 * shlex 1.3.0 -> 2.0.1
|
|
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
chore: bump to cc@1.4.3 for rustc_llvm and library
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (7256718): comparison URL. Overall result: no relevant changes - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countThis perf run didn't have relevant results for this metric. Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesThis perf run didn't have relevant results for this metric. Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 468.493s -> 459.635s (-1.89%) |
|
@Kobzol od you know why there is no result? I guess because GitHub was down? |
|
@bors try @rust-timer queue |
|
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
|
⌛ Trying commit f2427c4 with merge 52a6c34… To cancel the try build, run the command Workflow: https://github.com/rust-lang/rust/actions/runs/32078398312 |
chore: bump to cc@1.4.3 for rustc_llvm and library
What is this?
Old cc-rs derives this from the
-Cltorustflag on its own.cc@1.2.39starts gating that behind-Clinker-plugin-lto,which bootstrap doesn't pass.
Therefore,
we need to pass this flag explicitly to keep LTO mode
Previous efforts:
I personally want this because of cc 1.3.0+ has the support of Cargo
-Ztrim-paths,which helps what I am experimenting in #161049.
How to review
Commit by commit.
To keep commits bisect-able,
I added the first commit without cc bump.
clang should be fine with duplicate
-fltoflags.One thing I am not certain is whether we should probe
-fltoflag in this case,or just make this fail if
-fltoisn't supported.(I assume
-fltois quote widely supported)r? Kobzol
🤖 LLM disclosure: I used LLM for the experiment of #161049, but not the bootstrap LTO change in this PR.