-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
30 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +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 | ||
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
# compiler path | ||
export PATH=$PWD/bin:$PATH | ||
#!/usr/bin/env bash | ||
|
||
# compiler path | ||
export PATH=$PWD/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"language": "zig", | ||
"version": "0.10.1", | ||
"aliases": [], | ||
"limit_overrides": { | ||
"compile_timeout": 15000, | ||
"compile_cpu_time": 15000 | ||
} | ||
} | ||
{ | ||
"language": "zig", | ||
"version": "0.10.1", | ||
"aliases": [], | ||
"limit_overrides": { | ||
"compile_timeout": 15000, | ||
"compile_cpu_time": 15000 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
shift # Filename is only used in compile step, so we can take it out here | ||
./out "$@" | ||
#!/usr/bin/env bash | ||
|
||
shift # Filename is only used in compile step, so we can take it out here | ||
./out "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const std = @import("std"); | ||
|
||
pub fn main() !void { | ||
const stdout = std.io.getStdOut().writer(); | ||
try stdout.print("OK\n", .{}); | ||
} | ||
const std = @import("std"); | ||
|
||
pub fn main() !void { | ||
const stdout = std.io.getStdOut().writer(); | ||
try stdout.print("OK\n", .{}); | ||
} |