Skip to content

Commit 4f32350

Browse files
committed
Fix Windows build: replace /std:c11 with /TC in MSVC settings
node-gyp injects /std:c++20 by default on Windows, which conflicts with /std:c11. Using /TC forces C compilation mode instead, avoiding the incompatible flag collision.
1 parent 21a4d49 commit 4f32350

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

binding.gyp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"msvs_settings": {
1313
"VCCLCompilerTool": {
14-
"AdditionalOptions": ["/std:c11"]
14+
"AdditionalOptions": ["/TC"]
1515
}
1616
},
1717
"conditions": [

0 commit comments

Comments
 (0)