From b8b2719349f38e6665b591c4b9fa399d18e53093 Mon Sep 17 00:00:00 2001 From: Intel A80486DX2-66 Date: Sun, 14 Apr 2024 16:28:21 +0300 Subject: [PATCH] bytebeat_compiler.py: return the exit code the compiler returns --- bytebeat_compiler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bytebeat_compiler.py b/bytebeat_compiler.py index 873c73e..206a745 100644 --- a/bytebeat_compiler.py +++ b/bytebeat_compiler.py @@ -3,7 +3,7 @@ from argparse import ArgumentParser from os import system, environ, makedirs from os.path import exists, join as path_join -from sys import stdin +from sys import stdin, exit from typing import Dict, Union import subprocess @@ -230,4 +230,4 @@ if __name__ == "__main__": command = " ".join([CC, CFLAGS, INPUT_FILE, PATHS["fwrite_le"], "-o", OUTPUT_FILE]) print(command, flush=True) - system(command) + exit(system(command))