Commit 4a8dcf8d authored by Florian Fischer's avatar Florian Fischer
Browse files

fetch emper repo before building client and build with stats_all

parent 83e664e7
......@@ -696,7 +696,8 @@ def build_emper(emper_dir, meson_options='', build_env=None):
build_env.update({'CFLAGS': '-g', 'CXXFLAGS': '-g'})
meson_env = prepare_env(build_env)
common_options = '-Dstats=true --buildtype=release --fatal-meson-warnings'
stats_options = '-Dstats=true -Dstats_all=true -Dstats_stack_usage=disabled'
common_options = f'{stats_options} --buildtype=release --fatal-meson-warnings'
build_cmd = f'meson build {common_options} {meson_options}'
cmd_run(build_cmd, log, cwd=emper_dir, env=meson_env)
......@@ -711,8 +712,10 @@ def get_commit_id(repo=REPO, commit_ish='HEAD') -> str:
return subprocess.check_output(cmd.split(), cwd=repo, text=True)[:-1]
def prepare_client(data_dir: Path):
def prepare_client(data_dir: Path, fetch=True):
"""Prepare and build the special emper variant for the client"""
if fetch:
repo_fetch()
client_checkout = get_commit_id(REPO, CLIENT_CHECKOUT)
with open(data_dir / 'desc.yml', 'a', encoding='utf-8') as desc_file:
......
......@@ -420,7 +420,7 @@ if __name__ == '__main__':
write_desc(DATA_DIR)
if args.client_impl == 'emper':
emper.prepare_client(DATA_DIR)
emper.prepare_client(DATA_DIR, fetch=not args.no_fetch)
# generate selected emper flavors
if 'emper' in args.implementations:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment