Commit 5155901
Avoid circular dependency in assemble_text_with_context
When SPIRV_RUST_TARGET_ENV is defined (CMake builds), provide a stub
implementation of assemble_text_with_context that returns failure. This
avoids calling spvTextToBinaryWithOptions from within libspirv_tools_ffi,
which would create a circular dependency since SPIRV-Tools links against
spirv-tools-ffi.
In CMake builds, the Rust side should use its native assembler instead
of calling back into C++. The stub signals this by returning failure.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent da9235a commit 5155901
1 file changed
Lines changed: 16 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
70 | 84 | | |
71 | 85 | | |
72 | 86 | | |
| |||
97 | 111 | | |
98 | 112 | | |
99 | 113 | | |
| 114 | + | |
100 | 115 | | |
101 | 116 | | |
102 | 117 | | |
| |||
0 commit comments