mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-10-03 02:21:44 +00:00
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.
This commit is contained in:
parent
4659fe6a23
commit
d428908fde
1 changed files with 11 additions and 2 deletions
13
gitnexus/vendor/tree-sitter-c/binding.gyp
vendored
13
gitnexus/vendor/tree-sitter-c/binding.gyp
vendored
|
|
@ -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",
|
||||
],
|
||||
}],
|
||||
],
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue