mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
build: remove dependencies libc/winapi/hermit_abi
This commit is contained in:
parent
68a27f8eca
commit
ea132e2345
7 changed files with 97 additions and 1290 deletions
|
@ -5,7 +5,7 @@ use std::env;
|
|||
use std::ffi::OsStr;
|
||||
use std::fmt;
|
||||
use std::fs::File;
|
||||
use std::io::{stdin, BufRead, BufReader, Read, Write};
|
||||
use std::io::{stdin, BufRead, BufReader, IsTerminal, Read, Write};
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process;
|
||||
use std::str::FromStr;
|
||||
|
@ -1036,8 +1036,7 @@ USAGE:
|
|||
}
|
||||
}
|
||||
if cfg.input.is_repl() && cfg.mode != ErgMode::LanguageServer {
|
||||
use crate::tty::IsTty;
|
||||
let is_stdin_piped = !stdin().is_tty();
|
||||
let is_stdin_piped = !stdin().is_terminal();
|
||||
let input = if is_stdin_piped {
|
||||
let mut buffer = String::new();
|
||||
stdin().read_to_string(&mut buffer).unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue