common: print cd pdw on paths

print only modified variables on PATH

use common.run_cmd everywhere to get full bash bash commands

readme: recommend private/ instead of the cryptic p/
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-09-27 00:00:00 +00:00
parent 21a7a1ffa8
commit 75a555daa8
6 changed files with 41 additions and 27 deletions

View File

@@ -21,7 +21,7 @@ if args.clean:
else:
start_time = time.time()
os.makedirs(common.qemu_build_dir, exist_ok=True)
subprocess.check_call(
assert common.run_cmd(
[
os.path.join(common.qemu_src_dir, 'configure'),
'--enable-debug',
@@ -31,8 +31,9 @@ else:
'--with-sdlabi=2.0',
] +
args.extra_config_args,
extra_paths=[common.ccache_dir],
cwd=common.qemu_build_dir
)
) == 0
assert common.run_cmd(
[
'make',
@@ -40,7 +41,7 @@ else:
'-j', str(multiprocessing.cpu_count()),
],
cwd=common.qemu_build_dir,
extra_env={'PATH': common.ccache_dir + ':' + os.environ['PATH']},
extra_paths=[common.ccache_dir],
) == 0
end_time = time.time()
common.print_time(end_time - start_time)