Compile pragma. Recompile on external file compilation failure (#9455)
This commit is contained in:
parent
0dd3038a39
commit
9c88df220a
1 changed files with 2 additions and 1 deletions
|
|
@ -627,7 +627,8 @@ proc externalFileChanged(conf: ConfigRef; cfile: Cfile): bool =
|
||||||
close(f)
|
close(f)
|
||||||
|
|
||||||
proc addExternalFileToCompile*(conf: ConfigRef; c: var Cfile) =
|
proc addExternalFileToCompile*(conf: ConfigRef; c: var Cfile) =
|
||||||
if optForceFullMake notin conf.globalOptions and not externalFileChanged(conf, c):
|
if optForceFullMake notin conf.globalOptions and fileExists(c.obj) and
|
||||||
|
not externalFileChanged(conf, c):
|
||||||
c.flags.incl CfileFlag.Cached
|
c.flags.incl CfileFlag.Cached
|
||||||
conf.toCompile.add(c)
|
conf.toCompile.add(c)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue