INNER CODE UNIT · Python

run

wasm3/wasm3 · extra/check.py:44

def run(cmd, cwd=ROOT):
    """Run a command, its output going straight to ours rather than being captured.

    The suites report progress as they go and print a summary that is worth reading in
    full; buffering it to re-print on failure would hide a run that is merely slow.
    """
    print(f"\n{ansi.BOLD}${ansi.ENDC} {shlex.join(cmd)}", flush=True)
    if subprocess.call(cmd, cwd=cwd) != 0:
        raise StageError()


def built(args, name):
    """Locate an executable the build stage produced.

    Single-config generators put it straight in the build tree; Visual Studio and Xcode
    add a per-configuration directory. Searching both beats asking the caller which
    generator configured a tree they may not have configured themselves.
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…