Skip to content

Commit d614cbc

Browse files
committed
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.
1 parent 826f08c commit d614cbc

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

build.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
// with this program; if not, see <https://www.gnu.org/licenses/>.
1212

1313
fn main() {
14-
println!("cargo::rustc-link-search=.");
15-
println!("cargo::rustc-link-search=reftable");
16-
println!("cargo::rustc-link-search=xdiff");
17-
println!("cargo::rustc-link-lib=git");
18-
println!("cargo::rustc-link-lib=reftable");
19-
println!("cargo::rustc-link-lib=z");
20-
println!("cargo::rustc-link-lib=xdiff");
14+
println!("cargo:rustc-link-search=.");
15+
println!("cargo:rustc-link-search=reftable");
16+
println!("cargo:rustc-link-search=xdiff");
17+
println!("cargo:rustc-link-lib=git");
18+
println!("cargo:rustc-link-lib=reftable");
19+
println!("cargo:rustc-link-lib=z");
20+
println!("cargo:rustc-link-lib=xdiff");
2121
}

0 commit comments

Comments
 (0)