Skip to content

Commit 13048e4

Browse files
author
Le Yao
committed
Revert the BUILD and remove local configuration
Starting local Bazel server and connecting to it... DEBUG: Rule 'proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1617649269 -0700" DEBUG: Repository proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0 instantiated at: /root/proxy-wasm-cpp-host/WORKSPACE:9:33: in <toplevel> /root/.cache/bazel/_bazel_root/5d3cda4fc30ff6fff6d96ed8522a1d40/external/proxy_wasm_cpp_host/bazel/dependencies.bzl:20:44: in proxy_wasm_cpp_host_dependencies /root/.cache/bazel/_bazel_root/5d3cda4fc30ff6fff6d96ed8522a1d40/external/proxy_wasm_cpp_host/bazel/cargo/crates.bzl:724:10: in proxy_wasm_cpp_host_fetch_remote_crates /root/.cache/bazel/_bazel_root/5d3cda4fc30ff6fff6d96ed8522a1d40/external/bazel_tools/tools/build_defs/repo/utils.bzl:201:18: in maybe Repository rule new_git_repository defined at: /root/.cache/bazel/_bazel_root/5d3cda4fc30ff6fff6d96ed8522a1d40/external/bazel_tools/tools/build_defs/repo/git.bzl:186:37: in <toplevel> INFO: Analyzed 9 targets (131 packages loaded, 34267 targets configured). INFO: Found 1 target and 8 test targets... INFO: Elapsed time: 117.312s, Critical Path: 101.49s INFO: 334 processes: 165 internal, 169 linux-sandbox. INFO: Build completed successfully, 334 total actions //test:context_test PASSED in 0.1s //test:exports_test PASSED in 5.7s //test:null_vm_test PASSED in 0.1s //test:runtime_test PASSED in 2.0s //test:shared_data PASSED in 0.1s //test:shared_queue PASSED in 0.1s //test:vm_id_handle PASSED in 0.1s //test/common:bytecode_util_test PASSED in 0.1s Executed 8 out of 8 tests: 8 tests pass. INFO: Build completed successfully, 334 total actions Signed-off-by: Le Yao <[email protected]>
1 parent 3203249 commit 13048e4

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ cc_library(
2424
],
2525
exclude = [
2626
"src/**/v8*",
27-
"src/**/wasmtime*",
27+
"src/**/wamr*",
2828
"src/**/wavm*",
2929
],
3030
),
@@ -35,6 +35,6 @@ cc_library(
3535
"@boringssl//:crypto",
3636
"@com_google_protobuf//:protobuf_lite",
3737
"@proxy_wasm_cpp_sdk//:api_lib",
38-
"@wamr//:libiwasm",
38+
"@wasm_c_api//:wasmtime_lib",
3939
],
4040
)

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ proxy_wasm_cpp_host_dependencies()
1010

1111
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
1212

13-
rules_foreign_cc_dependencies()
13+
rules_foreign_cc_dependencies()

bazel/external/wamr.BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ filegroup(
1313
cmake(
1414
name = "libiwasm",
1515
cache_entries = {
16-
"CMAKE_BUILD_TYPE": "Debug",
1716
"CMAKE_EXPORT_COMPILE_COMMANDS": "On",
1817
"WAMR_BUILD_AOT": "0",
1918
"WAMR_BUILD_SIMD": "0",

bazel/repositories.bzl

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,20 @@ def proxy_wasm_cpp_host_repositories():
3636
urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"],
3737
)
3838

39-
http_archive(
40-
name = "wasmtime",
41-
build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD",
42-
sha256 = "e95d274822ac72bf06355bdfbeddcacae60d7e98fec8ee4b2e21740636fb5c2c",
43-
strip_prefix = "wasmtime-0.26.0",
44-
url = "https://github.com/bytecodealliance/wasmtime/archive/v0.26.0.tar.gz",
45-
)
46-
4739
http_archive(
4840
name = "wamr",
4941
build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD",
5042
sha256 = "f819b9ec866a12086233e578044dd8297e6be86f0f17807b16124f78a3652d4f",
5143
url = "https://github.com/lum1n0us/wasm-micro-runtime/releases/download/WAMR-01-29-2021/source.zip",
5244
)
5345

54-
# native.new_local_repository(
55-
# name = "wamr",
56-
# build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD",
57-
# path = "/source/wamr",
58-
# )
46+
http_archive(
47+
name = "wasmtime",
48+
build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD",
49+
sha256 = "e95d274822ac72bf06355bdfbeddcacae60d7e98fec8ee4b2e21740636fb5c2c",
50+
strip_prefix = "wasmtime-0.26.0",
51+
url = "https://github.com/bytecodealliance/wasmtime/archive/v0.26.0.tar.gz",
52+
)
5953

6054
http_archive(
6155
name = "wasm_c_api",

0 commit comments

Comments
 (0)