Skip to content

Commit 10d5b06

Browse files
authored
wamr: remove dependency on LLVM. (#239)
WAMR is being used in an interpreter mode, without AOT and/or JIT, so LLVM isn't needed, and it was previously unnecessarily built. This can be reverted once we add support for precompiled modules. Signed-off-by: Piotr Sikora <[email protected]>
1 parent d6b6d50 commit 10d5b06

File tree

4 files changed

+0
-154
lines changed

4 files changed

+0
-154
lines changed

bazel/external/llvm13.BUILD

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

bazel/external/llvm13.patch

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

bazel/external/wamr.BUILD

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ filegroup(
1212
cmake(
1313
name = "wamr_lib",
1414
cache_entries = {
15-
"LLVM_DIR": "$EXT_BUILD_DEPS/copy_llvm13/llvm/lib/cmake/llvm",
1615
"WAMR_BUILD_INTERP": "1",
1716
"WAMR_BUILD_FAST_INTERP": "1",
1817
"WAMR_BUILD_JIT": "0",
@@ -26,7 +25,4 @@ cmake(
2625
generate_args = ["-GNinja"],
2726
lib_source = ":srcs",
2827
out_static_libs = ["libvmlib.a"],
29-
deps = [
30-
"@llvm13//:llvm_lib",
31-
],
3228
)

bazel/repositories.bzl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -155,17 +155,6 @@ def proxy_wasm_cpp_host_repositories():
155155
actual = "@com_github_bytecodealliance_wasm_micro_runtime//:wamr_lib",
156156
)
157157

158-
maybe(
159-
http_archive,
160-
name = "llvm13",
161-
build_file = "@proxy_wasm_cpp_host//bazel/external:llvm13.BUILD",
162-
sha256 = "408d11708643ea826f519ff79761fcdfc12d641a2510229eec459e72f8163020",
163-
strip_prefix = "llvm-13.0.0.src",
164-
url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/llvm-13.0.0.src.tar.xz",
165-
patches = ["@proxy_wasm_cpp_host//bazel/external:llvm13.patch"],
166-
patch_args = ["-p1"],
167-
)
168-
169158
# Wasmtime with dependencies.
170159

171160
maybe(

0 commit comments

Comments
 (0)