Commit 1a249a5
Set SPIRV_RUST_TARGET_ENV_DEFINE=1 in CMake cargo invocation
When building the Rust FFI library via CMake, we need to set
SPIRV_RUST_TARGET_ENV_DEFINE=1 so that context_bridge.cc compiles
with stub implementations that don't depend on SPIRV-Tools-reduce.
Without this, context_bridge.cc includes full C++ implementations
that reference the Reducer class, but the shared library doesn't
link against SPIRV-Tools-reduce, causing undefined symbol errors.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 11d2477 commit 1a249a5
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
0 commit comments