Thread (1 message) 1 message, 1 author, 2024-09-08

Re: [PATCH v3 2/6] libgit-sys: introduce Rust wrapper for libgit.a

From: Junio C Hamano <hidden>
Date: 2024-09-08 21:32:48

Mike Hommey [off-list ref] writes:
On Fri, Sep 06, 2024 at 06:39:17PM -0400, Eric Sunshine wrote:
quoted
quoted
diff --git a/contrib/libgit-rs/libgit-sys/build.rs b/contrib/libgit-rs/libgit-sys/build.rs
@@ -0,0 +1,31 @@
+pub fn main() -> std::io::Result<()> {
+    let crate_root = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
+    let git_root = crate_root.join("../../..");
+    let dst = PathBuf::from(env::var_os("OUT_DIR").unwrap());
+
+    let make_output = std::process::Command::new("make")
Providing a mechanism for people to override this hardcoded spelling
of "make" could be another item for your NEEDSWORK list; in
particular, I'm thinking about platforms on which GNU "make" is
installed as "gmake".
And/or, use the `make_cmd` crate.
Thanks for helping.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help