Function try_emit_link_directives
pub fn try_emit_link_directives<P: AsRef<Path>>(build: &Build, library: P) -> Result<(), Error>
Emit the cargo: lines that link a static library into the crate being
built, the way Build::compile does after creating its archive.
This will return a result instead of panicking; see
emit_link_directives for the complete description.