Fix nimsuggest/#117 (#15602)

This commit is contained in:
Clyybber 2020-11-15 15:08:27 +01:00 • committed by GitHub
commit 92da06e64e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -627,10 +627,7 @@ proc footprint(conf: ConfigRef; cfile: Cfile): SecureHash =
getCompileCFileCmd(conf, cfile)) getCompileCFileCmd(conf, cfile))
proc externalFileChanged(conf: ConfigRef; cfile: Cfile): bool = proc externalFileChanged(conf: ConfigRef; cfile: Cfile): bool =
case conf.backend if conf.backend == backendJs: return false # pre-existing behavior, but not sure it's good
of backendInvalid: doAssert false
of backendJs: return false # pre-existing behavior, but not sure it's good
else: discard
var hashFile = toGeneratedFile(conf, conf.withPackageName(cfile.cname), "sha1") var hashFile = toGeneratedFile(conf, conf.withPackageName(cfile.cname), "sha1")
var currentHash = footprint(conf, cfile) var currentHash = footprint(conf, cfile)