nim c now allows: when defined(c) (#10130)

This commit is contained in:
Timothee Cour
2018-12-29 16:21:33 -08:00
committed by Andreas Rumpf
parent 0831292863
commit 9c65ea0d16

View File

@@ -167,6 +167,7 @@ proc mainCommand*(graph: ModuleGraph) =
of "c", "cc", "compile", "compiletoc":
# compile means compileToC currently
conf.cmd = cmdCompileToC
defineSymbol(graph.config.symbols, "c")
commandCompileToC(graph)
of "cpp", "compiletocpp":
conf.cmd = cmdCompileToCpp