We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1836e3b commit 15c2292Copy full SHA for 15c2292
src/librustc_codegen_ssa/back/link.rs
@@ -1422,7 +1422,7 @@ fn linker_with_args<'a, B: ArchiveBuilder<'a>>(
1422
add_pre_link_args(cmd, sess, flavor, crate_type);
1423
1424
// NO-OPT-OUT, OBJECT-FILES-NO, AUDIT-ORDER
1425
- if sess.target.target.options.is_like_fuchsia {
+ if sess.target.target.options.is_like_fuchsia && crate_type == CrateType::Executable {
1426
let prefix = match sess.opts.debugging_opts.sanitizer {
1427
Some(Sanitizer::Address) => "asan/",
1428
_ => "",
0 commit comments