File tree 6 files changed +38
-0
lines changed
6 files changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ mkdir -p bin
4
+ cd bin/
5
+
6
+ curl -L " https://ziglang.org/download/0.9.1/zig-linux-x86_64-0.9.1.tar.xz" -o zig.tar.xz
7
+ tar xf zig.tar.xz --strip-components=1
8
+ rm zig.tar.xz
9
+
10
+ cd ../
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # optimizing for small programs
4
+ rename ' s/$/\.zig/' " $@ " # Add .zig extension
5
+
6
+ zig build-exe -O ReleaseSafe --color off --cache-dir . --global-cache-dir . --name out * .zig
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ # compiler path
4
+ export PATH=$PWD /bin:$PATH
Original file line number Diff line number Diff line change
1
+ {
2
+ "language" : " zig" ,
3
+ "version" : " 0.9.1" ,
4
+ "aliases" : [" zig" ],
5
+ "limit_overrides" : {
6
+ "compile_timeout" : 15000
7
+ }
8
+ }
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ shift # Filename is only used in compile step, so we can take it out here
4
+ ./out " $@ "
Original file line number Diff line number Diff line change
1
+ const std = @import ("std" );
2
+
3
+ pub fn main () ! void {
4
+ const stdout = std .io .getStdOut ().writer ();
5
+ try stdout .print ("OK\n " , .{});
6
+ }
You can’t perform that action at this time.
0 commit comments