From fd5a12d7e25dc53238e2bbcffe970e646c1035f3 Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Fri, 24 Jun 2022 10:04:45 -0300 Subject: refactor(snapshots): to their own crate (#14794) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- snapshots/build.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 snapshots/build.rs (limited to 'snapshots/build.rs') diff --git a/snapshots/build.rs b/snapshots/build.rs new file mode 100644 index 000000000..df868591d --- /dev/null +++ b/snapshots/build.rs @@ -0,0 +1,10 @@ +// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license. + +mod build_runtime; +mod build_tsc; + +fn main() { + let out_dir = std::path::PathBuf::from(std::env::var_os("OUT_DIR").unwrap()); + build_runtime::create_runtime_snapshot(&out_dir.join("CLI_SNAPSHOT.bin")); + build_tsc::create_tsc_snapshot(&out_dir.join("COMPILER_SNAPSHOT.bin")); +} -- cgit v1.2.3