Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make verbose build also show compiler calls #117

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions spin/cmds/meson.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _meson_version_configured():
@click.option("-j", "--jobs", help="Number of parallel tasks to launch", type=int)
@click.option("--clean", is_flag=True, help="Clean build directory before build")
@click.option(
"-v", "--verbose", is_flag=True, help="Print all build output, even installation"
"-v", "--verbose", is_flag=True, help="Print detailed build and installation output"
)
@click.argument("meson_args", nargs=-1)
def build(meson_args, jobs=None, clean=False, verbose=False, quiet=False):
Expand Down Expand Up @@ -143,8 +143,11 @@ def build(meson_args, jobs=None, clean=False, verbose=False, quiet=False):

# Any other conditions that warrant a reconfigure?

compile_flags = ["-v"] if verbose else []
p = _run(
_meson_cli() + ["compile", "-C", build_dir], sys_exit=False, output=not quiet
_meson_cli() + ["compile"] + compile_flags + ["-C", build_dir],
sys_exit=False,
output=not quiet,
)
p = _run(
_meson_cli()
Expand Down
Loading