Fix path, fix Zig: CRLF -> LF
This commit is contained in:
parent
9a4ea72043
commit
b3214b1c71
|
@ -185,6 +185,7 @@ class Runtime {
|
||||||
.split('\n')
|
.split('\n')
|
||||||
.map(line => line.split('=', 2))
|
.map(line => line.split('=', 2))
|
||||||
.forEach(([key, val]) => {
|
.forEach(([key, val]) => {
|
||||||
|
val = val.replace_all(this.pkgdir, '/runtime');
|
||||||
this._env_vars[key.trim()] = val.trim();
|
this._env_vars[key.trim()] = val.trim();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# optimizing for small programs
|
# optimizing for small programs
|
||||||
rename 's/$/\.zig/' "$@" # Add .zig extension
|
rename 's/$/\.zig/' "$@" # Add .zig extension
|
||||||
|
|
||||||
zig build-exe -O ReleaseSafe --color off --cache-dir . --global-cache-dir . --name out *.zig
|
zig build-exe -O ReleaseSafe --color off --cache-dir . --global-cache-dir . --name out *.zig
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# compiler path
|
# compiler path
|
||||||
export PATH=$PWD/bin:$PATH
|
export PATH=$PWD/bin:$PATH
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{
|
{
|
||||||
"language": "zig",
|
"language": "zig",
|
||||||
"version": "0.10.1",
|
"version": "0.10.1",
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
"limit_overrides": {
|
"limit_overrides": {
|
||||||
"compile_timeout": 15000,
|
"compile_timeout": 15000,
|
||||||
"compile_cpu_time": 15000
|
"compile_cpu_time": 15000
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
shift # Filename is only used in compile step, so we can take it out here
|
shift # Filename is only used in compile step, so we can take it out here
|
||||||
./out "$@"
|
./out "$@"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
const stdout = std.io.getStdOut().writer();
|
const stdout = std.io.getStdOut().writer();
|
||||||
try stdout.print("OK\n", .{});
|
try stdout.print("OK\n", .{});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue