Skip to content

git cloning in build.rs?? #5

@nc7s

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.

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