From f7c298e2972e6a1eb8f9329272ed8e8c9549266c Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 26 Apr 2021 13:28:38 -0400 Subject: Remove denort optimization (#10350) denort is an optimization to "deno compile" to produce slightly smaller output. It's a decent idea, but causes a lot of negative side-effects: - Deno's link time is a source of constant agony both locally and in CI, denort doubles link time. - The release process is a long and arduous undertaking with many manual steps. denort necessitates an additional manual zip + upload from M1 apple computers. - The "deno compile" interface is complicated with the "--lite" option. This is confusing for uses ("why wouldn't you want lite?"). The benefits of this feature do not outweigh the negatives. We must find a different approach to optimizing "deno compile" output. --- cli/main_runtime.rs | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 cli/main_runtime.rs (limited to 'cli/main_runtime.rs') diff --git a/cli/main_runtime.rs b/cli/main_runtime.rs deleted file mode 100644 index 83c74ceaa..000000000 --- a/cli/main_runtime.rs +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. - -mod colors; -mod standalone; -mod tokio_util; -mod unix_util; -mod version; - -use deno_core::error::anyhow; -use deno_core::error::AnyError; -use std::env; - -pub fn main() { - #[cfg(windows)] - colors::enable_ansi(); // For Windows 10 - unix_util::raise_fd_limit(); - - let args: Vec = env::args().collect(); - if let Err(err) = run(args) { - eprintln!("{}: {}", colors::red_bold("error"), err.to_string()); - std::process::exit(1); - } -} - -fn run(args: Vec) -> Result<(), AnyError> { - let (metadata, bundle) = standalone::extract_standalone(args)? - .ok_or_else(|| anyhow!("This executable is used internally by 'deno compile', it is not meant to be invoked directly."))?; - tokio_util::run_basic(standalone::run(bundle, metadata)) -} -- cgit v1.2.3