Run a command and return success status.
(cmd)
| 29 | return f"{arch_name}-pc-{os_name_mapped}" |
| 30 | |
| 31 | def run_command(cmd): |
| 32 | """Run a command and return success status.""" |
| 33 | try: |
| 34 | subprocess.run(cmd, check=True) |
| 35 | return True |
| 36 | except subprocess.CalledProcessError as e: |
| 37 | print(f"Error running command: {' '.join(cmd)}", file=sys.stderr) |
| 38 | print(f"Error: {e}", file=sys.stderr) |
| 39 | return False |
| 40 | |
| 41 | def generate_headers(output_dir, target_arch, os_name, libffi_dir): |
| 42 | """Generate libffi headers using configure script.""" |
no test coverage detected
searching dependent graphs…