Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 2 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
push:
branches: [main, windows]
branches: [main]
pull_request:
branches: [main]

Expand All @@ -13,7 +13,7 @@ jobs:
matrix:
zig-version:
- "0.16.0"
operating-system: [ ubuntu-latest, macos-latest ]
operating-system: [ ubuntu-latest, macos-latest, windows-latest ]
optimize:
- "Debug"
- "ReleaseSafe"
Expand All @@ -39,8 +39,6 @@ jobs:
run: zig build -Doptimize=${{ matrix.optimize }} ${{ matrix.options }} test
- name: Run behavior tests ${{ matrix.optimize }}
run: zig build -Doptimize=${{ matrix.optimize }} ${{ matrix.options }} test-behavior
- name: Cleanup
run: rm -rf zig-out zig-cache

wasm-build:
runs-on: ubuntu-latest
Expand All @@ -55,8 +53,6 @@ jobs:
version: ${{ matrix.zig-version }}
- name: Build for wasm
run: zig build -Dtarget=wasm32-freestanding -Doptimize=ReleaseSmall
- name: Cleanup
run: rm -rf zig-out zig-cache

lint:
runs-on: macos-latest
Expand Down
8 changes: 4 additions & 4 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ pub fn build(b: *Build) !void {
}
b.step("lsp", "run buzz lsp").dependOn(&run_lsp_exe.step);
}
const lsp_tests = if (!is_wasm)
const lsp_tests = if (!is_wasm and target.result.os.tag != .windows)
b.addTest(
.{
.use_llvm = true,
Expand All @@ -193,8 +193,8 @@ pub fn build(b: *Build) !void {
)
else
null;
if (!is_wasm) {
lsp_tests.?.root_module.addImport(
if (lsp_tests) |lsp_test_exe| {
lsp_test_exe.root_module.addImport(
"lsp",
lsp.module("lsp"),
);
Expand Down Expand Up @@ -1034,7 +1034,7 @@ const BuildOptions = struct {
bool,
"jit",
"Turn on JIT engine",
) orelse true,
) orelse (target.result.os.tag != .windows),
.asynchronous = !is_wasm and b.option(
bool,
"jit_asynchronous",
Expand Down
5 changes: 5 additions & 0 deletions src/Debugger.zig
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,11 @@ pub fn start(
allocator: std.mem.Allocator,
address: std.Io.net.IpAddress,
) (std.Thread.SpawnError || error{OutOfMemory} || Error)!void {
if (builtin.os.tag == .windows) {
// Windows output capture needs a CreatePipe/SetHandleInformation path.
return error.CantCaptureOutput;
}

self.* = Debugger{
.process = process,
.allocator = allocator,
Expand Down
Loading
Loading