mirror of https://github.com/ArduPilot/ardupilot
waf: cmake: live output!
Waf buffers command output and spit it after the command is done. For external builds, that might give the wrong impression that the build stalled.
This commit is contained in:
parent
1f60e9e3e8
commit
2f324c056f
|
@ -126,12 +126,17 @@ from waflib.TaskGen import feature, taskgen_method
|
|||
|
||||
from collections import OrderedDict
|
||||
import os
|
||||
import sys
|
||||
|
||||
class cmake_configure_task(Task.Task):
|
||||
vars = ['CMAKE_BLD_DIR']
|
||||
run_str = '${CMAKE} ${CMAKE_SRC_DIR} ${CMAKE_VARS} ${CMAKE_GENERATOR_OPTION}'
|
||||
color = 'BLUE'
|
||||
|
||||
def exec_command(self, cmd, **kw):
|
||||
kw['stdout'] = sys.stdout
|
||||
return super(cmake_configure_task, self).exec_command(cmd, **kw)
|
||||
|
||||
def uid(self):
|
||||
if not hasattr(self, 'uid_'):
|
||||
m = Utils.md5()
|
||||
|
@ -163,6 +168,10 @@ class cmake_build_task(Task.Task):
|
|||
run_str = '${CMAKE} --build ${CMAKE_BLD_DIR} --target ${CMAKE_TARGET}'
|
||||
color = 'BLUE'
|
||||
|
||||
def exec_command(self, cmd, **kw):
|
||||
kw['stdout'] = sys.stdout
|
||||
return super(cmake_build_task, self).exec_command(cmd, **kw)
|
||||
|
||||
def uid(self):
|
||||
if not hasattr(self, 'uid_'):
|
||||
m = Utils.md5()
|
||||
|
|
Loading…
Reference in New Issue