You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto merge of rust-lang#153519 - JonathanBrouwer:rollup-Soq8THm, r=JonathanBrouwer
Rollup of 5 pull requests
Successful merges:
- rust-lang#149937 (spliit out `linker-info` from `linker-messages`)
- rust-lang#153503 (Fallback to fat LTO for -Clto=thin in cg_gcc)
- rust-lang#153346 (move never type tests to subdirectories and add some comments)
- rust-lang#153371 (Fix LegacyKeyValueFormat report from docker build: arm)
- rust-lang#153508 (Clean up the eager formatting API)
// Hide some progress messages from link.exe that we don't care about.
722
+
// See https://github.com/chromium/chromium/blob/bfa41e41145ffc85f041384280caf2949bb7bd72/build/toolchain/win/tool_wrapper.py#L144-L146
723
+
if line.starts_with(" Creating library")
724
+
|| line.starts_with("Generating code")
725
+
|| line.starts_with("Finished generating code")
726
+
{
727
+
linker_info += line;
728
+
linker_info += "\r\n";
729
+
}else{
730
+
*output += line;
731
+
*output += "\r\n"
732
+
}
733
+
});
734
+
}elseifis_macos_ld(sess){
735
+
info!("inferred macOS LD");
736
+
737
+
// FIXME: Tracked by https://github.com/rust-lang/rust/issues/136113
738
+
let deployment_mismatch = |line:&str| {
739
+
line.starts_with("ld: warning: object file (")
740
+
&& line.contains("was built for newer 'macOS' version")
741
+
&& line.contains("than being linked")
742
+
};
743
+
// FIXME: This is a real warning we would like to show, but it hits too many crates
744
+
// to want to turn it on immediately.
745
+
let search_path = |line:&str| {
746
+
line.starts_with("ld: warning: search path '") && line.ends_with("' not found")
// Hide some progress messages from link.exe that we don't care about.
925
-
// See https://github.com/chromium/chromium/blob/bfa41e41145ffc85f041384280caf2949bb7bd72/build/toolchain/win/tool_wrapper.py#L144-L146
926
-
if is_msvc_link_exe {
927
-
ifletOk(str) = str::from_utf8(&prog.stdout){
928
-
letmut output = String::with_capacity(str.len());
929
-
for line in stdout.lines(){
930
-
if line.starts_with(" Creating library")
931
-
|| line.starts_with("Generating code")
932
-
|| line.starts_with("Finished generating code")
933
-
{
934
-
continue;
935
-
}
936
-
output += line;
937
-
output += "\r\n"
938
-
}
939
-
stdout = escape_string(output.trim().as_bytes())
940
-
}
941
-
}
942
-
943
-
let level = crate_info.lint_levels.linker_messages;
0 commit comments