Skip to content

Commit

Permalink
verbose cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
jpihl committed Jul 25, 2019
1 parent 10e563b commit db7d8c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions buildbot.py
Expand Up @@ -10,10 +10,10 @@
project_name = 'bourne'


def run_command(args):
def run_command(args, env_ext={}):
print("Running: {}".format(args))
sys.stdout.flush()
subprocess.check_call(args)
subprocess.check_call(args, env=dict(os.environ.copy(), **env_ext))


def get_tool_options(properties):
Expand Down Expand Up @@ -89,8 +89,8 @@ def cmake(properties):

old_cwd = os.getcwd()
os.chdir(build_path)
run_command(['cmake', '../'])
run_command(['cmake', '--build', '.'])
run_command(['cmake', '../'], env_ext={'VERBOSE': '1'})
run_command(['cmake', '--build', '.'], env_ext={'VERBOSE': '1'})
os.chdir(old_cwd)


Expand Down

0 comments on commit db7d8c5

Please sign in to comment.