Add zig 0.13.0
This commit is contained in:
parent
4e361dcf92
commit
32f0aaedc3
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
mkdir -p bin
|
||||
cd bin/
|
||||
|
||||
curl -L "https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz" -o zig.tar.xz
|
||||
tar xf zig.tar.xz --strip-components=1
|
||||
rm zig.tar.xz
|
||||
|
||||
cd ../
|
|
@ -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
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# compiler path
|
||||
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"language": "zig",
|
||||
"version": "0.13.0",
|
||||
"aliases": [],
|
||||
"limit_overrides": {
|
||||
"compile_timeout": 15000,
|
||||
"compile_cpu_time": 15000
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
shift # Filename is only used in compile step, so we can take it out here
|
||||
./out "$@"
|
|
@ -0,0 +1,5 @@
|
|||
const std = @import("std");
|
||||
|
||||
pub fn main() !void {
|
||||
std.debug.print("Hello!\n", .{});
|
||||
}
|
Loading…
Reference in New Issue