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
Changes:
1. build.rs: Only define SPIRV_RUST_TARGET_ENV when SPIRV_RUST_TARGET_ENV_DEFINE=1
(Bazel). In CMake builds, context_bridge.cc provides implementations directly.
2. context_bridge.cc: Include source/table.h and properly implement
dispatch_context_message using context->consumer. This allows the Rust FFI
library to provide message dispatch without depending on linker order.
3. text.cpp: Remove duplicate FFI implementations. context_bridge.cc now
provides these in all build scenarios.
4. build_rust_ffi.py: Handle Windows library extension (.lib vs .a).
This fixes:
- Undefined reference errors in CMake builds (linker ordering)
- Multiple definition errors when both files provided implementations
- Bazel Windows builds failing to find the output library
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments