parent
016a8ccd7a
commit
87229e272e
6 changed files with 24 additions and 4 deletions
|
|
@ -1,15 +1,18 @@
|
|||
discard """
|
||||
output: '''Error: cannot open 'a.nim'\31
|
||||
output: '''
|
||||
Error: cannot open 'a.nim'\31
|
||||
Error: cannot open 'b.nim'\31
|
||||
'''
|
||||
targets: "c"
|
||||
"""
|
||||
|
||||
import osproc
|
||||
from std/os import getCurrentCompilerExe
|
||||
|
||||
var ps: seq[Process] # compile & run 2 progs in parallel
|
||||
const nim = getCurrentCompilerExe()
|
||||
for prog in ["a", "b"]:
|
||||
ps.add startProcess("nim", "",
|
||||
ps.add startProcess(nim, "",
|
||||
["r", "--hint[Conf]=off", "--hint[Processing]=off", prog],
|
||||
options = {poUsePath, poDaemon, poStdErrToStdOut})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue