Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nimsuggest/nim-lang#117 (nim-lang#15602)
Browse files Browse the repository at this point in the history
Clyybber authored and PMunch committed Jan 6, 2021

Unverified

No user is associated with the committer email.
1 parent 22a670d commit bc84069
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/extccomp.nim
Original file line number Diff line number Diff line change
@@ -627,10 +627,7 @@ proc footprint(conf: ConfigRef; cfile: Cfile): SecureHash =
getCompileCFileCmd(conf, cfile))

proc externalFileChanged(conf: ConfigRef; cfile: Cfile): bool =
case conf.backend
of backendInvalid: doAssert false
of backendJs: return false # pre-existing behavior, but not sure it's good
else: discard
if conf.backend == backendJs: return false # pre-existing behavior, but not sure it's good

var hashFile = toGeneratedFile(conf, conf.withPackageName(cfile.cname), "sha1")
var currentHash = footprint(conf, cfile)

0 comments on commit bc84069

Please sign in to comment.