b/c...py: run the runtime unit after compiling
This commit is contained in:
parent
a0687b3e46
commit
e16688297f
@ -1,7 +1,8 @@
|
|||||||
## Example usage
|
## Example usage
|
||||||
|
|
||||||
```text
|
```text
|
||||||
$ echo 't&((t>>7)-t)&t>>8' | python ./bytebeat_compiler.py - -p 44100 -v && ./build/render_bytebeat
|
$ echo 't&((t>>7)-t)&t>>8' | python ./bytebeat_compiler.py - -p 44100 -v
|
||||||
|
:: C bytebeat generator: compiler unit
|
||||||
Compiling
|
Compiling
|
||||||
:: C bytebeat generator runtime unit
|
:: C bytebeat generator runtime unit
|
||||||
|
|
||||||
|
@ -384,4 +384,10 @@ if __name__ == "__main__":
|
|||||||
]
|
]
|
||||||
print(" ".join(command), flush=True)
|
print(" ".join(command), flush=True)
|
||||||
|
|
||||||
|
if subprocess.run(command).returncode != 0:
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
command = [OUTPUT_FILE]
|
||||||
|
print(" ".join(command), flush=True)
|
||||||
|
|
||||||
exit(subprocess.run(command).returncode)
|
exit(subprocess.run(command).returncode)
|
||||||
|
Loading…
Reference in New Issue
Block a user