summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2021-10-25 17:16:16 +0200
committerBert Belder <bertbelder@gmail.com>2021-10-26 07:17:11 +0200
commitd936a8f3f886076662a0dd21f1baf3aab5400691 (patch)
tree0b1ee73d6bc432a3aa20aee819e495ba85c4b19b /cli/main.rs
parentb4ab8ef9ea8fffaa86931d6cb83b5e4354179a23 (diff)
chore: upgrade Rust to 1.56.0 (#12514)
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/cli/main.rs b/cli/main.rs
index d36145bea..f4d4046df 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -35,6 +35,7 @@ mod tools;
mod tsc;
mod unix_util;
mod version;
+mod windows_util;
use crate::file_fetcher::File;
use crate::file_watcher::ResolutionResult;
@@ -1364,9 +1365,11 @@ fn unwrap_or_exit<T>(result: Result<T, AnyError>) -> T {
pub fn main() {
setup_exit_process_panic_hook();
+
+ unix_util::raise_fd_limit();
+ windows_util::ensure_stdio_open();
#[cfg(windows)]
colors::enable_ansi(); // For Windows 10
- unix_util::raise_fd_limit();
let args: Vec<String> = env::args().collect();
let standalone_res = match standalone::extract_standalone(args.clone()) {