about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-10-02 00:03:52 +0000
committerbors <bors@rust-lang.org>2023-10-02 00:03:52 +0000
commit79bfd93d5a9cf73d312b72158c1d2289453c18c7 (patch)
tree73801f2f536d328816d27ecfeb4d7261bc2396f4 /compiler/rustc_codegen_llvm/src/builder.rs
parente0d7ed1f453fb54578cc96dfea859b0e7be15016 (diff)
parent3f4a289016ed2c7ae351dd77c309ca17ecc1f87a (diff)
downloadrust-79bfd93d5a9cf73d312b72158c1d2289453c18c7.tar.gz
rust-79bfd93d5a9cf73d312b72158c1d2289453c18c7.zip
Auto merge of #116207 - Ayush1325:uefi_stdio, r=Mark-Simulacrum
Stdio support for UEFI

- Uses Simple Text Output Protocol and Simple Text Input Protocol
- Reading is done one character at a time
- Writing is done with max 4096 characters

# Quirks
## Output Newline
- UEFI uses CRLF for newline. So when running the application in UEFI shell (qemu VGA), the output of `println` looks weird.
- However, since the UEFI shell supports piping output, I am unsure if doing any output post-processing is a good idea. UEFI shell `cat` command seems to work fine with just LF.

## Input Newline
- `Stdin.read_line()` method is broken in UEFI shell. Pressing enter seems to be read as CR, which means LF is never encountered.
- Works fine with input redirection from file.

CC `@dvdhrm`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions