From e48fc5e8495865b68a697b68416c7bdb28b7a623 Mon Sep 17 00:00:00 2001 From: dave caruso Date: Tue, 17 Dec 2024 22:44:31 -0800 Subject: [PATCH] windows fix --- src/codegen/bindgen.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen/bindgen.ts b/src/codegen/bindgen.ts index 89173ba506..fe060d9470 100644 --- a/src/codegen/bindgen.ts +++ b/src/codegen/bindgen.ts @@ -1475,7 +1475,7 @@ pub fn main() !void { `; zigEnumCode.level = 3; for (const zigEnum of zigEnums.values()) { - const candidates = allZigFiles.filter(file => file.endsWith("/" + zigEnum.file)); + const candidates = allZigFiles.filter(file => file.endsWith(path.sep + zigEnum.file)); if (candidates.length === 0) { throwAt(`Cannot find a file named ${str(zigEnum.file)}`, zigEnum.snapshot); continue;