zig extension

This commit is contained in:
Thomas Hobson 2021-04-24 20:08:42 +12:00
parent d851515f37
commit 594ee7d436
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
#!/usr/bin/env bash
# optimizing for small programs
zig build-exe -O ReleaseSmall --color off --cache-dir . --global-cache-dir . --name out "$@"
rename 's/$/\.zig/' "$@" # Add .zig extension
zig build-exe -O ReleaseSmall --color off --cache-dir . --global-cache-dir . --name out *.zig