mirror of
https://github.com/engineer-man/piston.git
synced 2025-05-18 17:26:26 +02:00
Updated Zig to 0.14.0
This commit is contained in:
parent
1d55a41a2d
commit
35653ec9a5
6 changed files with 39 additions and 0 deletions
10
packages/zig/0.14.0/build.sh
vendored
Executable file
10
packages/zig/0.14.0/build.sh
vendored
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mkdir -p bin
|
||||||
|
cd bin/
|
||||||
|
|
||||||
|
curl -L "https://ziglang.org/download/0.14.0/zig-linux-x86_64-0.14.0.tar.xz" -o zig.tar.xz
|
||||||
|
tar xf zig.tar.xz --strip-components=1
|
||||||
|
rm zig.tar.xz
|
||||||
|
|
||||||
|
cd ../
|
6
packages/zig/0.14.0/compile
vendored
Normal file
6
packages/zig/0.14.0/compile
vendored
Normal 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.14.0/environment
vendored
Normal file
4
packages/zig/0.14.0/environment
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# compiler path
|
||||||
|
export PATH=$PWD/bin:$PATH
|
9
packages/zig/0.14.0/metadata.json
vendored
Normal file
9
packages/zig/0.14.0/metadata.json
vendored
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"language": "zig",
|
||||||
|
"version": "0.14.0",
|
||||||
|
"aliases": [],
|
||||||
|
"limit_overrides": {
|
||||||
|
"compile_timeout": 30000,
|
||||||
|
"compile_cpu_time": 30000
|
||||||
|
}
|
||||||
|
}
|
4
packages/zig/0.14.0/run
vendored
Normal file
4
packages/zig/0.14.0/run
vendored
Normal 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.14.0/test.zig
vendored
Normal file
6
packages/zig/0.14.0/test.zig
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
const std = @import("std");
|
||||||
|
|
||||||
|
pub fn main() !void {
|
||||||
|
const stdout = std.io.getStdOut().writer();
|
||||||
|
try stdout.print("OK\n", .{});
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue