Skip to content

Commit 58b260d

Browse files
committed
Don't copy include.h so we don't accidentally clobber in the future
Signed-off-by: Keith Mattix II <[email protected]>
1 parent 3aa2411 commit 58b260d

File tree

3 files changed

+3
-10
lines changed

3 files changed

+3
-10
lines changed

bazel/external/wasmtime.BUILD

+1-8
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,10 @@ licenses(["notice"]) # Apache 2
55

66
package(default_visibility = ["//visibility:public"])
77

8-
genrule(
9-
name = "wasm-c-api-gen",
10-
srcs = ["crates/c-api/include/wasm.h"],
11-
outs = ["include/wasm.h"],
12-
cmd = "cp $< $@",
13-
)
14-
158
cc_library(
169
name = "wasmtime_lib",
1710
hdrs = [
18-
"include/wasm.h",
11+
"crates/c-api/include/wasm.h",
1912
],
2013
deps = [
2114
":rust_c_api",

src/wasmtime/types.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
#include "src/common/types.h"
16-
#include "include/wasm.h"
16+
#include "crates/c-api/include/wasm.h"
1717

1818
namespace proxy_wasm::wasmtime {
1919

src/wasmtime/wasmtime.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#include "src/wasmtime/types.h"
2828

29-
#include "include/wasm.h"
29+
#include "crates/c-api/include/wasm.h"
3030

3131
namespace proxy_wasm {
3232
namespace wasmtime {

0 commit comments

Comments
 (0)