Compare commits

...

3 Commits

Author SHA1 Message Date
Thomas Hobson 961435b8cc
Merge pull request #518 from Deecellar/master
Updated Zig to 0.9.1
2022-09-20 00:18:30 +12:00
Dan Ellis Echavarria 17217c050b Metada update 2022-09-14 10:03:11 -05:00
Dan Ellis Echavarria 7e8cd9c63c Added 0.9.1 to piston 2022-09-14 10:01:55 -05:00
6 changed files with 38 additions and 0 deletions

10
packages/zig/0.9.1/build.sh vendored Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
mkdir -p bin
cd bin/
curl -L "https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz" -o zig.tar.xz
tar xf zig.tar.xz --strip-components=1
rm zig.tar.xz
cd ../

6
packages/zig/0.9.1/compile vendored Normal file
View File

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

4
packages/zig/0.9.1/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# compiler path
export PATH=$PWD/bin:$PATH

8
packages/zig/0.9.1/metadata.json vendored Normal file
View File

@ -0,0 +1,8 @@
{
"language": "zig",
"version": "0.9.1",
"aliases": ["zig"],
"limit_overrides": {
"compile_timeout": 15000
}
}

4
packages/zig/0.9.1/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
shift # Filename is only used in compile step, so we can take it out here
./out "$@"

6
packages/zig/0.9.1/test.zig vendored Normal file
View File

@ -0,0 +1,6 @@
const std = @import("std");
pub fn main() !void {
const stdout = std.io.getStdOut().writer();
try stdout.print("OK\n", .{});
}