Genode fixes (#10491)
Readline pasthru, add linker to config, do not pass -lm to linker.
This commit is contained in:
parent
07a0a61875
commit
15422a3e5a
4 changed files with 15 additions and 3 deletions
|
|
@ -73,6 +73,15 @@ when defined(Windows):
|
|||
discard readConsoleInputW(hStdin, irInputRecord, 1, dwEventsRead)
|
||||
return result
|
||||
|
||||
elif defined(genode):
|
||||
proc readLineFromStdin*(prompt: string): TaintedString {.
|
||||
tags: [ReadIOEffect, WriteIOEffect].} =
|
||||
stdin.readLine()
|
||||
|
||||
proc readLineFromStdin*(prompt: string, line: var TaintedString): bool {.
|
||||
tags: [ReadIOEffect, WriteIOEffect].} =
|
||||
stdin.readLine(line)
|
||||
|
||||
else:
|
||||
import linenoise, termios
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue