Commit 1ec8660
authored
capi: Improve header management during build (#11961)
This commit improves the management of header files in cmake to pick up
changes to them after-configure in some situations. Previously the cmake
scripts would copy all wasmtime headers into the build directory to live
adjacent to the `conf.h`-generated header. This meant that there was
only one `-I` directory, for example, but it meant that changes to the
source files after configuration weren't reflected in the output. This
commit fixes this by leaving the source headers in-place. This means
that there are now two include directories during building.
Various rules/targets should all be updated to handle this, and notably
the build script of the C API still copies headers around as it did
before (when built via Rust).1 parent 4b7f3df commit 1ec8660
2 files changed
+8
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
130 | 133 | | |
131 | 134 | | |
132 | 135 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 136 | | |
143 | 137 | | |
144 | 138 | | |
| |||
168 | 162 | | |
169 | 163 | | |
170 | 164 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 165 | | |
177 | 166 | | |
178 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
867 | | - | |
| 867 | + | |
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| |||
0 commit comments