0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

Add NO_BUILD_SNAPSHOTS to speed up incremental builds (#3847)

This commit is contained in:
Ryan Dahl 2020-01-31 12:43:08 -05:00 committed by GitHub
parent e1697421e2
commit 1dc8afe3af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -47,6 +47,16 @@ fn main() {
deno_typescript::ts_version()
);
// The generation of snapshots is slow and often unnecessary. Until we figure
// out how to speed it up, or avoid it when unnecessary, this env var provides
// an escape hatch for the impatient hacker in need of faster incremental
// builds.
// USE WITH EXTREME CAUTION
if env::var_os("NO_BUILD_SNAPSHOTS").is_some() {
println!("NO_BUILD_SNAPSHOTS is set, skipping snapshot building.");
return;
}
let c = PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap());
let o = PathBuf::from(env::var_os("OUT_DIR").unwrap());