diff options
Diffstat (limited to 'nim/main.pas')
-rw-r--r-- | nim/main.pas | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nim/main.pas b/nim/main.pas index 565373685..c888e5c3c 100644 --- a/nim/main.pas +++ b/nim/main.pas @@ -119,7 +119,7 @@ procedure CompileProject(const filename: string); begin {@discard} CompileModule( JoinPath(options.libpath, appendFileExt('system', nimExt)), false, true); - {@discard} CompileModule(filename, true, false); + {@discard} CompileModule(appendFileExt(filename, nimExt), true, false); end; procedure semanticPasses; @@ -352,6 +352,11 @@ begin wantFile(filename); CommandCompileToEcmaScript(filename); end; + wCompileToLLVM: begin + gCmd := cmdCompileToLLVM; + wantFile(filename); + CommandCompileToC(filename); + end; wPretty: begin gCmd := cmdPretty; wantFile(filename); |