src/vms/nimc/compiler

Source   Edit  

Types

Compiler = object
Source   Edit  

Procs

proc compileLibrary(self: Compiler; source: string; output: string): (string,
    int) {....raises: [OSError, IOError],
           tags: [ExecIOEffect, ReadIOEffect, RootEffect], forbids: [].}
Compile a library with the configured flags, from the given source code to the given output path. Source   Edit  
proc newNimCompiler(nim: string; flags: seq[string]): Compiler {....raises: [],
    tags: [], forbids: [].}
Creates a new Nim compiler with the given compiler binary and flags. Source   Edit  
proc path(self: Compiler): (string, int) {....raises: [OSError, IOError],
    tags: [ExecIOEffect, ReadIOEffect, RootEffect], forbids: [].}
Get the path where the Nim compiler is located. Source   Edit  
proc version(self: Compiler): (string, int) {....raises: [OSError, IOError],
    tags: [ExecIOEffect, ReadIOEffect, RootEffect], forbids: [].}
Gets the version of the Nim compiler. Source   Edit