Skip to content

Commit

Permalink
wasm: migrate to V8's native Bazel rules. (envoyproxy#19275)
Browse files Browse the repository at this point in the history
Fixes envoyproxy#15145.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>
  • Loading branch information
PiotrSikora authored Feb 9, 2022
1 parent 489807b commit 3be5738
Show file tree
Hide file tree
Showing 8 changed files with 125 additions and 436 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ build:asan --linkopt -fsanitize=address,undefined
build:asan --copt -fno-sanitize=vptr,function
build:asan --linkopt -fno-sanitize=vptr,function
build:asan --copt -DADDRESS_SANITIZER=1
build:asan --copt -DUNDEFINED_SANITIZER=1
build:asan --copt -D__SANITIZE_ADDRESS__
build:asan --test_env=ASAN_OPTIONS=handle_abort=1:allow_addr2line=true:check_initialization_order=true:strict_init_order=true:detect_odr_violation=1
build:asan --test_env=UBSAN_OPTIONS=halt_on_error=true:print_stacktrace=1
Expand Down Expand Up @@ -109,6 +110,7 @@ build:clang-tsan --define ENVOY_CONFIG_TSAN=1
build:clang-tsan --copt -fsanitize=thread
build:clang-tsan --linkopt -fsanitize=thread
build:clang-tsan --linkopt -fuse-ld=lld
build:clang-tsan --copt -DTHREAD_SANITIZER=1
build:clang-tsan --build_tag_filters=-no_san,-no_tsan
build:clang-tsan --test_tag_filters=-no_san,-no_tsan
# Needed due to https://github.com/libevent/libevent/issues/777
Expand All @@ -127,6 +129,7 @@ build:clang-msan --copt -fsanitize=memory
build:clang-msan --linkopt -fsanitize=memory
build:clang-msan --linkopt -fuse-ld=lld
build:clang-msan --copt -fsanitize-memory-track-origins=2
build:clang-msan --copt -DMEMORY_SANITIZER=1
build:clang-msan --test_env=MSAN_SYMBOLIZER_PATH
# MSAN needs -O1 to get reasonable performance.
build:clang-msan --copt -O1
Expand Down
8 changes: 0 additions & 8 deletions bazel/dependency_imports.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
load("@bazel_toolchains//rules/exec_properties:exec_properties.bzl", "create_rbe_exec_properties_dict", "custom_exec_properties")
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies", "go_repository")
load("@build_bazel_rules_apple//apple:repositories.bzl", "apple_rules_dependencies")
load("@rules_fuzzing//fuzzing:repositories.bzl", "rules_fuzzing_dependencies")
Expand Down Expand Up @@ -33,13 +32,6 @@ def envoy_dependency_imports(go_version = GO_VERSION):
rules_cc_dependencies()
rules_cc_toolchains()

custom_exec_properties(
name = "envoy_large_machine_exec_property",
constants = {
"LARGE_MACHINE": create_rbe_exec_properties_dict(labels = dict(size = "large")),
},
)

# These dependencies, like most of the Go in this repository, exist only for the API.
go_repository(
name = "org_golang_google_grpc",
Expand Down
45 changes: 0 additions & 45 deletions bazel/external/wee8.BUILD

This file was deleted.

157 changes: 0 additions & 157 deletions bazel/external/wee8.genrule_cmd

This file was deleted.

Loading

0 comments on commit 3be5738

Please sign in to comment.