bytebeat_compiler.py: return the exit code the compiler returns
This commit is contained in:
parent
43e4b6f6a9
commit
b8b2719349
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user