support for objective C generation
This commit is contained in:
parent
62643fbc93
commit
ceb1f5e218
7 changed files with 24 additions and 13 deletions
14
rod/main.nim
14
rod/main.nim
|
|
@ -192,6 +192,16 @@ proc MainCommand(cmd, filename: string) =
|
|||
gCmd = cmdCompileToC
|
||||
wantFile(filename)
|
||||
CommandCompileToC(filename)
|
||||
of wCompileToCpp:
|
||||
extccomp.cExt = ".cpp"
|
||||
gCmd = cmdCompileToCpp
|
||||
wantFile(filename)
|
||||
CommandCompileToC(filename)
|
||||
of wCompileToOC, wOC:
|
||||
extccomp.cExt = ".m"
|
||||
gCmd = cmdCompileToOC
|
||||
wantFile(filename)
|
||||
CommandCompileToC(filename)
|
||||
of wRun:
|
||||
gCmd = cmdRun
|
||||
wantFile(filename)
|
||||
|
|
@ -200,10 +210,6 @@ proc MainCommand(cmd, filename: string) =
|
|||
CommandCompileToC(filename)
|
||||
else:
|
||||
rawMessage(errInvalidCommandX, cmd)
|
||||
of wCompileToCpp:
|
||||
gCmd = cmdCompileToCpp
|
||||
wantFile(filename)
|
||||
CommandCompileToC(filename)
|
||||
of wCompileToEcmaScript, wJs:
|
||||
gCmd = cmdCompileToEcmaScript
|
||||
wantFile(filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue