We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 442e3cf commit 16eada4Copy full SHA for 16eada4
compiler/rustc_codegen_ssa/src/back/linker.rs
@@ -200,7 +200,10 @@ fn link_args<L: Linker + ?Sized>(
200
/// Arguments for the cc wrapper specifically.
201
/// Check that it's indeed a cc wrapper and pass verbatim.
202
fn cc_args<L: Linker + ?Sized>(l: &mut L, args: impl IntoIterator<Item: AsRef<OsStr>>) -> &mut L {
203
- assert!(l.is_cc());
+ if !l.is_cc() {
204
+ let args: OsString = args.into_iter().map(|s| s.as_ref().to_owned()).collect();
205
+ bug!("the linker is not a cc, args: {args:?}");
206
+ }
207
verbatim_args(l, args)
208
}
209
/// Arguments supported by both underlying linker and cc wrapper, pass verbatim.
0 commit comments