only enable linenoise for -d:nimUseLinenoise (#13478)

* only enable linenoise for -d:nimUseLinenoise

* fixup
This commit is contained in:
Timothee Cour 2020-02-24 02:06:39 -08:00 • committed by GitHub
commit 1cf5c280e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 13 additions and 9 deletions

View file

@ -513,7 +513,8 @@ template gatherFiles(fun, libpath, outDir) =
fun(src, dst)
for f in walkFiles(libpath / "lib/*.h"): copySrc(f)
copySrc(libpath / "lib/wrappers/linenoise/linenoise.h")
# commenting out for now, see discussion in https://github.com/nim-lang/Nim/pull/13413
# copySrc(libpath / "lib/wrappers/linenoise/linenoise.h")
proc srcdist(c: var ConfigData) =
let cCodeDir = getOutputDir(c) / "c_code"