You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Discover MSVC include paths for Windows bindgen builds
Fixes bindgen compilation error on Windows MSVC with GPU features:
'stdbool.h' file not found in ggml.h:207
Root cause: bindgen's libclang cannot find MSVC standard C headers
(stdbool.h, stddef.h, etc.) without explicit -isystem paths.
Solution:
- Use cc::Build to discover MSVC environment and extract INCLUDE paths
- Pass each path via -isystem to bindgen's clang
- Add MSVC compatibility flags (--target, -fms-compatibility, -fms-extensions)
Pattern follows existing Android fix at lines 390-414.
Enables Windows MSVC builds with GPU backends (cuda/vulkan/opencl).
Tested in production with shimmy v1.6.0 (295/295 tests passing).
0 commit comments