Compare commits

..

2 Commits

Author SHA1 Message Date
Omar Brikaa 2bac980072
Merge b3214b1c71 into 59338eee33 2024-09-06 21:54:50 +03:00
Omar Brikaa b3214b1c71 Fix path, fix Zig: CRLF -> LF 2024-09-06 21:54:44 +03:00
6 changed files with 30 additions and 29 deletions

View File

@ -185,6 +185,7 @@ class Runtime {
.split('\n')
.map(line => line.split('=', 2))
.forEach(([key, val]) => {
val = val.replace_all(this.pkgdir, '/runtime');
this._env_vars[key.trim()] = val.trim();
});
}

View File

@ -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

View File

@ -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

View File

@ -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
}
}

View File

@ -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 "$@"

View File

@ -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", .{});
}