only enable linenoise for -d:nimUseLinenoise (#13478)
* only enable linenoise for -d:nimUseLinenoise * fixup
This commit is contained in:
parent
84e78b4ffc
commit
1cf5c280e3
6 changed files with 13 additions and 9 deletions
|
|
@ -12,8 +12,10 @@
|
|||
import
|
||||
pathutils
|
||||
|
||||
template imp(x) = import x
|
||||
const hasRstdin = compiles(imp(rdstdin))
|
||||
# support `useGnuReadline`, `useLinenoise` for backwards compatibility
|
||||
const hasRstdin = (defined(nimUseLinenoise) or defined(useLinenoise) or defined(useGnuReadline)) and
|
||||
not defined(windows)
|
||||
|
||||
when hasRstdin: import rdstdin
|
||||
|
||||
type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue