message: Pass link args to dependents.
diff: @@ -357,6 +357,7 @@ fn rustc(cx: &mut Context<'_, '_>, unit: &Unit, exec: &Arc<dyn Executor>) -> Car
  for path in output.library_paths.iter() {
  rustc.arg("-L").arg(path);
  }
  +
  if key.0 == current_id {
  for cfg in &output.cfgs {
  rustc.arg("--cfg").arg(cfg);
  @@ -366,6 +367,8 @@ fn rustc(cx: &mut Context<'_, '_>, unit: &Unit, exec: &Arc<dyn Executor>) -> Car
  rustc.arg("-l").arg(name);
  }
  }
  + }
  +
  if link_type.is_some() {
  for (lt, arg) in &output.linker_args {
  if lt.is_none() || *lt == link_type {
  @@ -374,7 +377,6 @@ fn rustc(cx: &mut Context<'_, '_>, unit: &Unit, exec: &Arc<dyn Executor>) -> Car
  }
  }
  }
  - }
  Ok(())
  }
  