1
0

bytebeat_compiler.py: return the exit code the compiler returns

This commit is contained in:
Intel A80486DX2-66 2024-04-14 16:28:21 +03:00
parent 43e4b6f6a9
commit b8b2719349
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -3,7 +3,7 @@
from argparse import ArgumentParser from argparse import ArgumentParser
from os import system, environ, makedirs from os import system, environ, makedirs
from os.path import exists, join as path_join from os.path import exists, join as path_join
from sys import stdin from sys import stdin, exit
from typing import Dict, Union from typing import Dict, Union
import subprocess import subprocess
@ -230,4 +230,4 @@ if __name__ == "__main__":
command = " ".join([CC, CFLAGS, INPUT_FILE, PATHS["fwrite_le"], "-o", command = " ".join([CC, CFLAGS, INPUT_FILE, PATHS["fwrite_le"], "-o",
OUTPUT_FILE]) OUTPUT_FILE])
print(command, flush=True) print(command, flush=True)
system(command) exit(system(command))