diff --git a/crates/build-rs/src/input.rs b/crates/build-rs/src/input.rs index 01a4a3946..0636623e9 100644 --- a/crates/build-rs/src/input.rs +++ b/crates/build-rs/src/input.rs @@ -106,16 +106,7 @@ pub fn cargo_manifest_dir() -> PathBuf { get_path("CARGO_MANIFEST_DIR") } -/// Contains parameters needed for Cargo’s [jobserver] implementation to parallelize -/// subprocesses. -/// -/// Rustc or cargo invocations from build.rs can already read -/// `CARGO_MAKEFLAGS`, but GNU Make requires the flags to be specified either -/// directly as arguments, or through the `MAKEFLAGS` environment variable. -/// Currently Cargo doesn’t set the `MAKEFLAGS` variable, but it’s free for build -/// scripts invoking GNU Make to set it to the contents of `CARGO_MAKEFLAGS`. -/// -/// [jobserver]: https://www.gnu.org/software/make/manual/html_node/Job-Slots.html +/// The manifest `links` value. #[track_caller] pub fn cargo_manifest_links() -> Option { get_opt_str("CARGO_MANIFEST_LINKS")