Skip to content

Commit

Permalink
Fix path, fix Zig: CRLF -> LF
Browse files Browse the repository at this point in the history
  • Loading branch information
Brikaa committed Sep 6, 2024
1 parent 9a4ea72 commit b3214b1
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 29 deletions.
1 change: 1 addition & 0 deletions api/src/runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
Expand Down
12 changes: 6 additions & 6 deletions packages/zig/0.10.1/compile
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
8 changes: 4 additions & 4 deletions packages/zig/0.10.1/environment
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
18 changes: 9 additions & 9 deletions packages/zig/0.10.1/metadata.json
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
}
}
8 changes: 4 additions & 4 deletions packages/zig/0.10.1/run
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 "$@"
12 changes: 6 additions & 6 deletions packages/zig/0.10.1/test.zig
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", .{});
}

0 comments on commit b3214b1

Please sign in to comment.