record cppdefine for incremental compilation

This commit is contained in:
Andreas Rumpf 2018-06-10 18:05:43 +02:00
commit 8db27d30e6
3 changed files with 5 additions and 3 deletions

View file

@ -793,6 +793,8 @@ proc replay(g: ModuleGraph; module: PSym; n: PNode) =
extccomp.addLinkOption(g.config, n[1].strVal)
of "passc":
extccomp.addCompileOption(g.config, n[1].strVal)
of "cppdefine":
options.cppDefine(g.config, n[1].strVal)
of "inc":
let destKey = n[1].strVal
let by = n[2].intVal