Skip to content

git cloning in build.rs?? #5

Description

@nc7s

static TCMALLOC_REPO: &str = "https://github.com/gperftools/gperftools";
static TCMALLOC_TAG: &str = "gperftools-2.7";

if !out_dir.join("gperftools").exists() {
assert!(out_dir.exists(), "OUT_DIR does not exist");
let mut cmd = Command::new("git");
cmd.current_dir(&out_dir)
.args(&["clone", TCMALLOC_REPO, "--depth=1", "--branch", TCMALLOC_TAG]);
run(&mut cmd);
}

This is unreliable. Check git submodule, or consider vendoring the two files that's actually used.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions