feat(bin/linja): call lean after ninja if ninja failed
This commit is contained in:
parent
32be0a67e2
commit
37538acafa
1 changed files with 5 additions and 0 deletions
|
@ -202,6 +202,11 @@ def handle_failure_for_flycheck(out, target):
|
|||
print "%s:1:0: error: failed to compile %s" % (target, failed_file)
|
||||
print "FLYCHECK_END"
|
||||
|
||||
if failed:
|
||||
proc = subprocess.Popen([g_lean_path, "--flycheck", target],
|
||||
stdout=subprocess.PIPE, stderr=None)
|
||||
print proc.communicate()[0]
|
||||
|
||||
def call_ninja(directory, args):
|
||||
targets = []
|
||||
for item in args.targets:
|
||||
|
|
Loading…
Reference in a new issue