rust/chg/build.rs
author Arseniy Alekseyev <aalekseyev@janestreet.com>
Wed, 04 Jan 2023 16:48:32 +0000
changeset 49890 1b701d425c37
parent 44688 1f5ab1a9363d
permissions -rw-r--r--
merge: short-circuit the _checkfs loop upon getting ENOENT This reduces the number of [lstat] calls when updating from rev(-1) to a rev with lots of files by a factor of several: for path foo/bar/baz/quux.txt without this patch we're lstatting: foo foo/bar foo/bar/baz foo/bar/baz/quux.txt and with this patch: foo foo/bar/baz/quux.txt

fn main() {
    cc::Build::new()
        .warnings(true)
        .file("src/sendfds.c")
        .file("src/sighandlers.c")
        .compile("procutil");
}