1
0

b/c...py: run the runtime unit after compiling

This commit is contained in:
Intel A80486DX2-66 2024-08-26 17:26:37 +03:00
parent 45be617943
commit c4254b75b4
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B
2 changed files with 7 additions and 1 deletions

View File

@ -1,7 +1,7 @@
## Example usage
```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
cc -Ofast -march=native -mtune=native -Wall -Wextra -Wpedantic -pedantic -Wno-unused-variable -Wno-unused-but-set-variable -Wno-dangling-else -Wno-parentheses -std=c99 ./build/substituted.c ./src/fwrite_le.c -o ./build/render_bytebeat -I./include

View File

@ -289,4 +289,10 @@ if __name__ == "__main__":
]
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)