Commit ba9650c
Remove source/table.h include from context_bridge.cc
context_bridge.cc is compiled by Rust's build.rs, which always defines
SPIRV_RUST_TARGET_ENV. However, source/table.h requires generated headers
(core_tables_header.inc) that aren't available during the cxx_build phase.
Solution:
- Remove source/table.h include from context_bridge.cc entirely
- Make dispatch_context_message a no-op in context_bridge.cc
- Move the actual dispatch_context_message implementation to source/text.cpp
(which is compiled by CMake with access to generated headers)
This ensures:
- Bazel builds: context_bridge.cc compiles without generated headers
- CMake builds: source/text.cpp provides working implementations
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 68638f6 commit ba9650c
2 files changed
+41
-46
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 10 | | |
19 | 11 | | |
20 | 12 | | |
| |||
40 | 32 | | |
41 | 33 | | |
42 | 34 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
53 | 40 | | |
54 | 41 | | |
55 | 42 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
77 | 47 | | |
78 | 48 | | |
79 | 49 | | |
80 | 50 | | |
81 | 51 | | |
82 | 52 | | |
83 | | - | |
84 | 53 | | |
85 | 54 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 55 | | |
91 | 56 | | |
92 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1071 | 1071 | | |
1072 | 1072 | | |
1073 | 1073 | | |
1074 | | - | |
1075 | | - | |
1076 | | - | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
1077 | 1077 | | |
1078 | 1078 | | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
1079 | 1109 | | |
1080 | 1110 | | |
1081 | 1111 | | |
| |||
0 commit comments