aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-10-29 13:10:19 -0700
committerJunio C Hamano <gitster@pobox.com>2025-10-29 13:10:19 -0700
commitd614cbc46ed6a4121f5e77fedc6e4095dcf803f6 (patch)
tree20c794b4ce60aa8b4595a66c284746060a554a9d
parentobject-file-convert: always make sure object ID algo is valid (diff)
downloadgit-d614cbc46ed6a4121f5e77fedc6e4095dcf803f6.tar.gz
git-d614cbc46ed6a4121f5e77fedc6e4095dcf803f6.zip
SQUASH??? downgrade build.rs syntax
As the build with "make WITH_RUST=YesPlease" dies like so ... AR libgit.a CARGO target/release/libgitcore.a error: the `cargo::` syntax for build script output instructions was added in \ Rust 1.77.0, but the minimum supported Rust version of `gitcore v0.1.0 \ (/home/gitster/w/git.build)` is 1.49.0. Switch to the old `cargo:rustc-link-search=.` syntax (note the single colon). See https://doc.rust-lang.org/cargo/reference/build-scripts.html#outputs-of-\ the-build-script for more information about build script outputs. gmake: *** [Makefile:2964: target/release/libgitcore.a] Error 101 work it around by downgrading the syntax as the error messages suggests.
-rw-r--r--build.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/build.rs b/build.rs
index 136d58c35a..3228367b5d 100644
--- a/build.rs
+++ b/build.rs
@@ -11,11 +11,11 @@
// with this program; if not, see <https://www.gnu.org/licenses/>.
fn main() {
- println!("cargo::rustc-link-search=.");
- println!("cargo::rustc-link-search=reftable");
- println!("cargo::rustc-link-search=xdiff");
- println!("cargo::rustc-link-lib=git");
- println!("cargo::rustc-link-lib=reftable");
- println!("cargo::rustc-link-lib=z");
- println!("cargo::rustc-link-lib=xdiff");
+ println!("cargo:rustc-link-search=.");
+ println!("cargo:rustc-link-search=reftable");
+ println!("cargo:rustc-link-search=xdiff");
+ println!("cargo:rustc-link-lib=git");
+ println!("cargo:rustc-link-lib=reftable");
+ println!("cargo:rustc-link-lib=z");
+ println!("cargo:rustc-link-lib=xdiff");
}