implement passL and passC for the compilation cache

This commit is contained in:
Andreas Rumpf 2018-06-10 17:06:02 +02:00
commit 2662d713f7
3 changed files with 13 additions and 8 deletions

View file

@ -789,6 +789,10 @@ proc replay(g: ModuleGraph; module: PSym; n: PNode) =
extccomp.addExternalFileToCompile(g.config, cf)
of "link":
extccomp.addExternalFileToLink(g.config, n[1].strVal)
of "passl":
extccomp.addLinkOption(g.config, n[1].strVal)
of "passc":
extccomp.addCompileOption(g.config, n[1].strVal)
of "inc":
let destKey = n[1].strVal
let by = n[2].intVal