From d428908fdee1656d3bbdbcd237e2a98013c125fb Mon Sep 17 00:00:00 2001 From: Gergo Magyar Date: Tue, 9 Jun 2026 13:10:18 +0000 Subject: [PATCH] chore(vendor): add Windows cflags parity block to tree-sitter-c/binding.gyp c's binding.gyp used an unconditional `cflags_c: ["-std=c11"]`, while kotlin/swift gate MSVC flags behind an `OS=='win'` condition (/std:c11 /utf-8). Inert today (no non-ASCII bytes in c's parser.c, and node-gyp ignores cflags_c on MSVC anyway), but align the three so a future source-build fallback on Windows behaves consistently. --- gitnexus/vendor/tree-sitter-c/binding.gyp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/gitnexus/vendor/tree-sitter-c/binding.gyp b/gitnexus/vendor/tree-sitter-c/binding.gyp index 46623442c..a74aac635 100644 --- a/gitnexus/vendor/tree-sitter-c/binding.gyp +++ b/gitnexus/vendor/tree-sitter-c/binding.gyp @@ -12,8 +12,17 @@ "bindings/node/binding.cc", "src/parser.c", ], - "cflags_c": [ - "-std=c11", + "conditions": [ + ["OS!='win'", { + "cflags_c": [ + "-std=c11", + ], + }, { # OS == "win" + "cflags_c": [ + "/std:c11", + "/utf-8", + ], + }], ], } ]