xref: /llvm-project/llvm/utils/gn/build/run_built_binary.py (revision b71edfaa4ec3c998aadb35255ce2f60bba2940b0)
110f7255dSNico Weber#!/usr/bin/env python3
210f7255dSNico Weber"""Runs a built binary."""
310f7255dSNico Weber
410f7255dSNico Weberimport subprocess
510f7255dSNico Weberimport sys
610f7255dSNico Weber
710f7255dSNico Weber# Prefix with ./ to run built binary, not arbitrary stuff from PATH.
8*b71edfaaSTobias Hietasys.exit(subprocess.call(["./" + sys.argv[1]] + sys.argv[2:]))
9