Skip to content

Commit ad8303f

Browse files
authored
chore!:remove support for wavm (#438)
* remove support for wavm Signed-off-by: Michael Warres <[email protected]> * apply clang-format Signed-off-by: Michael Warres <[email protected]> --------- Signed-off-by: Michael Warres <[email protected]> Signed-off-by: Matt Leon <[email protected]>
1 parent 65bb78f commit ad8303f

File tree

14 files changed

+7
-666
lines changed

14 files changed

+7
-666
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,6 @@ jobs:
262262
os: macos-13
263263
arch: x86_64
264264
action: test
265-
- name: 'WAVM on Linux/x86_64'
266-
engine: 'wavm'
267-
repo: 'com_github_wavm_wavm'
268-
os: ubuntu-22.04
269-
arch: x86_64
270-
action: test
271-
flags: --config=clang
272-
cache: true
273265

274266
steps:
275267
- uses: actions/checkout@v2

BUILD

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ load(
1919
"proxy_wasm_select_engine_wamr",
2020
"proxy_wasm_select_engine_wasmedge",
2121
"proxy_wasm_select_engine_wasmtime",
22-
"proxy_wasm_select_engine_wavm",
2322
)
2423
load("@rules_cc//cc:defs.bzl", "cc_library")
2524

@@ -281,34 +280,6 @@ cc_library(
281280
],
282281
)
283282

284-
cc_library(
285-
name = "wavm_lib",
286-
srcs = [
287-
"src/wavm/wavm.cc",
288-
],
289-
hdrs = ["include/proxy-wasm/wavm.h"],
290-
copts = [
291-
"-DWAVM_API=",
292-
"-Wno-non-virtual-dtor",
293-
"-Wno-old-style-cast",
294-
],
295-
defines = [
296-
"PROXY_WASM_HAS_RUNTIME_WAVM",
297-
"PROXY_WASM_HOST_ENGINE_WAVM",
298-
],
299-
linkopts = select({
300-
"@platforms//os:macos": [],
301-
"@platforms//os:windows": [],
302-
"//conditions:default": [
303-
"-ldl",
304-
],
305-
}),
306-
deps = [
307-
":wasm_vm_headers",
308-
"//external:wavm",
309-
],
310-
)
311-
312283
cc_library(
313284
name = "lib",
314285
deps = [
@@ -324,7 +295,5 @@ cc_library(
324295
) + proxy_wasm_select_engine_wasmtime(
325296
[":wasmtime_lib"],
326297
[":prefixed_wasmtime_lib"],
327-
) + proxy_wasm_select_engine_wavm(
328-
[":wavm_lib"],
329298
),
330299
)

bazel/BUILD

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ config_setting(
4646
values = {"define": "engine=wasmtime"},
4747
)
4848

49-
config_setting(
50-
name = "engine_wavm",
51-
values = {"define": "engine=wavm"},
52-
)
53-
5449
config_setting(
5550
name = "multiengine",
5651
values = {"define": "engine=multi"},

bazel/external/wavm.BUILD

Lines changed: 0 additions & 28 deletions
This file was deleted.

bazel/repositories.bzl

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -263,30 +263,3 @@ def proxy_wasm_cpp_host_repositories():
263263
name = "prefixed_wasmtime",
264264
actual = "@com_github_bytecodealliance_wasmtime//:prefixed_wasmtime_lib",
265265
)
266-
267-
# WAVM with dependencies.
268-
269-
maybe(
270-
http_archive,
271-
name = "com_github_wavm_wavm",
272-
build_file = "@proxy_wasm_cpp_host//bazel/external:wavm.BUILD",
273-
sha256 = "7cfa3d7334c96f89553bb44eeee736a192826a78b4db114042d38d6882748f5b",
274-
strip_prefix = "WAVM-nightly-2022-05-14",
275-
url = "https://github.com/WAVM/WAVM/archive/refs/tags/nightly/2022-05-14.tar.gz",
276-
)
277-
278-
native.bind(
279-
name = "wavm",
280-
actual = "@com_github_wavm_wavm//:wavm_lib",
281-
)
282-
283-
maybe(
284-
http_archive,
285-
name = "llvm",
286-
build_file = "@proxy_wasm_cpp_host//bazel/external:llvm.BUILD",
287-
sha256 = "7d9a8405f557cefc5a21bf5672af73903b64749d9bc3a50322239f56f34ffddf",
288-
strip_prefix = "llvm-12.0.1.src",
289-
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.1/llvm-12.0.1.src.tar.xz",
290-
patches = ["@proxy_wasm_cpp_host//bazel/external:llvm.patch"],
291-
patch_args = ["-p1"],
292-
)

bazel/select.bzl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,3 @@ def proxy_wasm_select_engine_wasmedge(xs):
4747
"@proxy_wasm_cpp_host//bazel:multiengine": xs,
4848
"//conditions:default": [],
4949
})
50-
51-
def proxy_wasm_select_engine_wavm(xs):
52-
return select({
53-
"@proxy_wasm_cpp_host//bazel:engine_wavm": xs,
54-
"@proxy_wasm_cpp_host//bazel:multiengine": xs,
55-
"//conditions:default": [],
56-
})

include/proxy-wasm/wasm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ class PluginHandleBase : public std::enable_shared_from_this<PluginHandleBase> {
373373
using PluginHandleFactory = std::function<std::shared_ptr<PluginHandleBase>(
374374
std::shared_ptr<WasmHandleBase> base_wasm, std::shared_ptr<PluginBase> plugin)>;
375375

376-
// Get an existing ThreadLocal VM matching 'vm_id' or create one using 'base_wavm' by cloning or by
376+
// Get an existing ThreadLocal VM matching 'vm_id' or create one using 'base_wasm' by cloning or by
377377
// using it it as a template.
378378
std::shared_ptr<PluginHandleBase> getOrCreateThreadLocalPlugin(
379379
const std::shared_ptr<WasmHandleBase> &base_handle, const std::shared_ptr<PluginBase> &plugin,

include/proxy-wasm/wasm_vm.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,9 @@ class WasmVm {
189189
/**
190190
* Whether or not the VM implementation supports cloning. Cloning is VM system dependent.
191191
* When a VM is configured a single VM is instantiated to check that the .wasm file is valid and
192-
* to do VM system specific initialization. In the case of WAVM this is potentially ahead-of-time
193-
* compilation. Then, if cloning is supported, we clone that VM for each worker, potentially
194-
* copying and sharing the initialized data structures for efficiency. Otherwise we create an new
195-
* VM from scratch for each worker.
192+
* to do VM system specific initialization. Then, if cloning is supported, we clone that VM for
193+
* each worker, potentially copying and sharing the initialized data structures for efficiency.
194+
* Otherwise we create an new VM from scratch for each worker.
196195
* @return one of enum Cloneable with the VMs cloneability.
197196
*/
198197
virtual Cloneable cloneable() = 0;

include/proxy-wasm/wavm.h

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)