Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ local_repository(
path = "bssl-compat",
)

new_local_repository(
name = "llvm",
path = "/opt/llvm",
build_file = "//bazel/external:llvm.BUILD",
)

load("//bazel:api_binding.bzl", "envoy_api_binding")

envoy_api_binding()
Expand Down
6 changes: 3 additions & 3 deletions bazel/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -572,12 +572,12 @@ config_setting(
# Alias pointing to the selected version of BoringSSL:
alias(
name = "boringssl",
actual = "@envoy//bssl-compat:ssl"
actual = "@bssl-compat//:ssl"
)

alias(
name = "boringcrypto",
actual = "@envoy//bssl-compat:crypto"
actual = "@bssl-compat//:crypto"
)

config_setting(
Expand Down
20 changes: 20 additions & 0 deletions bazel/external/llvm.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
load("@rules_cc//cc:defs.bzl", "cc_library")

licenses(["notice"]) # Apache 2

# libclang-cpp from llvm, used by the bssl-compat prefixer tool.
cc_library(
name = "libclang-cpp",
srcs = glob(["lib/libclang-cpp.*"]),
hdrs = glob(["include/**/*"]),
includes = ["include"],
linkopts = ["-lstdc++"],
visibility = ["//visibility:public"],
)

# The clang compiler built-in headers (stdef.h, limits.h etc)
filegroup(
name = "clang-headers",
srcs = glob(["lib/clang/*/include/**/*.h"]),
visibility = ["//visibility:public"],
)
4 changes: 2 additions & 2 deletions bazel/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ def envoy_dependencies(skip_targets = []):
# Binding to an alias pointing to the bssl-compat layer
native.bind(
name = "ssl",
actual = "@envoy//bssl-compat:ssl",
actual = "@bssl-compat//:ssl",
)
native.bind(
name = "crypto",
actual = "@envoy//bssl-compat:crypto",
actual = "@bssl-compat//:crypto",
)

# The long repo names (`com_github_fmtlib_fmt` instead of `fmtlib`) are
Expand Down
Loading