mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
Update rules_go (#7202)
* Update rules_go * go 1.15 * try with v0.24.2 * Update Mac OS X SDK * gaz * update SDK in toolchain config * -I flag * another -I flag * Update rules_go, gazelle, bazel version * regen, update rules_docker * Revert "another -I flag" This reverts commit 9255133d99bee1e94560a64316a4a7539a363935. * Revert "-I flag" This reverts commit 2954a41d76adc81ccb6281af243f4be1f79152e9. * giving up * Use OS X 10.12 * Use OS X 10.12 * Revert "Use OS X 10.12" This reverts commit 4f60d5cb807b2ccccd484a85a6a7477a5fd13e28. * Revert "Use OS X 10.12" This reverts commit a79177fab7182ad792d1cee7fb61214ef8bd73ab. * osx toolchain tweaks necessary to work with 10.15 mac sdk * Update docker image, regen * gaz * test using custom image * Revert "test using custom image" This reverts commit 95b8666810a254f16061c99e2ea0ae4d020b2f2d. * explicit go version * Clean up docker image rules with new definitions. gazelle * please the linter * Update protobuf compiler to 3.13.0, run gazelle * Update gazelle to fix empty build files. https://github.com/bazelbuild/bazel-gazelle/pull/926 * update skylib * fix herumi fuzz build * remove comment from tools/cross-toolchain/regenerate.sh Co-authored-by: rkapka <rkapka@wp.pl> Co-authored-by: SuburbanDad <gts.mobile@gmail.com> Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
parent
1b9911ccc3
commit
93c11e0e53
@ -1 +1 @@
|
||||
3.2.0
|
||||
3.7.0
|
||||
|
49
WORKSPACE
49
WORKSPACE
@ -5,19 +5,19 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
|
||||
|
||||
http_archive(
|
||||
name = "bazel_toolchains",
|
||||
sha256 = "db48eed61552e25d36fe051a65d2a329cc0fb08442627e8f13960c5ab087a44e",
|
||||
strip_prefix = "bazel-toolchains-3.2.0",
|
||||
sha256 = "8e0633dfb59f704594f19ae996a35650747adc621ada5e8b9fb588f808c89cb0",
|
||||
strip_prefix = "bazel-toolchains-3.7.0",
|
||||
urls = [
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.2.0/bazel-toolchains-3.2.0.tar.gz",
|
||||
"https://github.com/bazelbuild/bazel-toolchains/releases/download/3.2.0/bazel-toolchains-3.2.0.tar.gz",
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/bazel-toolchains/releases/download/3.7.0/bazel-toolchains-3.7.0.tar.gz",
|
||||
"https://github.com/bazelbuild/bazel-toolchains/releases/download/3.7.0/bazel-toolchains-3.7.0.tar.gz",
|
||||
],
|
||||
)
|
||||
|
||||
http_archive(
|
||||
name = "com_grail_bazel_toolchain",
|
||||
sha256 = "0bec89e35d8a141c87f28cfc506d6d344785c8eb2ff3a453140a1fe972ada79d",
|
||||
strip_prefix = "bazel-toolchain-77a87103145f86f03f90475d19c2c8854398a444",
|
||||
urls = ["https://github.com/grailbio/bazel-toolchain/archive/77a87103145f86f03f90475d19c2c8854398a444.tar.gz"],
|
||||
sha256 = "b924b102adc0c3368d38a19bd971cb4fa75362a27bc363d0084b90ca6877d3f0",
|
||||
strip_prefix = "bazel-toolchain-0.5.7",
|
||||
urls = ["https://github.com/grailbio/bazel-toolchain/archive/0.5.7.tar.gz"],
|
||||
)
|
||||
|
||||
load("@com_grail_bazel_toolchain//toolchain:deps.bzl", "bazel_toolchain_dependencies")
|
||||
@ -28,7 +28,7 @@ load("@com_grail_bazel_toolchain//toolchain:rules.bzl", "llvm_toolchain")
|
||||
|
||||
llvm_toolchain(
|
||||
name = "llvm_toolchain",
|
||||
llvm_version = "9.0.0",
|
||||
llvm_version = "10.0.0",
|
||||
)
|
||||
|
||||
load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
|
||||
@ -47,10 +47,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
|
||||
http_archive(
|
||||
name = "bazel_skylib",
|
||||
sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44",
|
||||
sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
|
||||
urls = [
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
|
||||
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz",
|
||||
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
|
||||
],
|
||||
)
|
||||
|
||||
@ -60,10 +60,10 @@ bazel_skylib_workspace()
|
||||
|
||||
http_archive(
|
||||
name = "bazel_gazelle",
|
||||
sha256 = "d8c45ee70ec39a57e7a05e5027c32b1576cc7f16d9dd37135b0eddde45cf1b10",
|
||||
sha256 = "209b1a3a4719f3bf613f787fb97389c9aaea195d633d9485c40ed1de18c059f1",
|
||||
strip_prefix = "bazel-gazelle-97d00015cfacc708d88e382f08eab8a1a31c3bef",
|
||||
urls = [
|
||||
"https://storage.googleapis.com/bazel-mirror/github.com/bazelbuild/bazel-gazelle/releases/download/v0.20.0/bazel-gazelle-v0.20.0.tar.gz",
|
||||
"https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.20.0/bazel-gazelle-v0.20.0.tar.gz",
|
||||
"https://github.com/bazelbuild/bazel-gazelle/archive/97d00015cfacc708d88e382f08eab8a1a31c3bef.tar.gz",
|
||||
],
|
||||
)
|
||||
|
||||
@ -76,9 +76,9 @@ http_archive(
|
||||
|
||||
http_archive(
|
||||
name = "io_bazel_rules_docker",
|
||||
sha256 = "dc97fccceacd4c6be14e800b2a00693d5e8d07f69ee187babfd04a80a9f8e250",
|
||||
strip_prefix = "rules_docker-0.14.1",
|
||||
url = "https://github.com/bazelbuild/rules_docker/archive/v0.14.1.tar.gz",
|
||||
sha256 = "1698624e878b0607052ae6131aa216d45ebb63871ec497f26c67455b34119c80",
|
||||
strip_prefix = "rules_docker-0.15.0",
|
||||
urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.15.0/rules_docker-v0.15.0.tar.gz"],
|
||||
)
|
||||
|
||||
http_archive(
|
||||
@ -89,10 +89,10 @@ http_archive(
|
||||
# nogo check fails for certain third_party dependencies.
|
||||
"//third_party:io_bazel_rules_go.patch",
|
||||
],
|
||||
sha256 = "7b9bbe3ea1fccb46dcfa6c3f3e29ba7ec740d8733370e21cdc8937467b4a4349",
|
||||
sha256 = "d1ffd055969c8f8d431e2d439813e42326961d0942bdf734d2c95dc30c369566",
|
||||
urls = [
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.22.4/rules_go-v0.22.4.tar.gz",
|
||||
"https://github.com/bazelbuild/rules_go/releases/download/v0.22.4/rules_go-v0.22.4.tar.gz",
|
||||
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz",
|
||||
"https://github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz",
|
||||
],
|
||||
)
|
||||
|
||||
@ -155,7 +155,10 @@ load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_depe
|
||||
|
||||
go_rules_dependencies()
|
||||
|
||||
go_register_toolchains(nogo = "@//:nogo")
|
||||
go_register_toolchains(
|
||||
go_version = "1.15.3",
|
||||
nogo = "@//:nogo",
|
||||
)
|
||||
|
||||
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
|
||||
|
||||
@ -268,9 +271,9 @@ buildifier_dependencies()
|
||||
|
||||
git_repository(
|
||||
name = "com_google_protobuf",
|
||||
commit = "4059c61f27eb1b06c4ee979546a238be792df0a4",
|
||||
commit = "fde7cf7358ec7cd69e8db9be4f1fa6a5c431386a", # v3.13.0
|
||||
remote = "https://github.com/protocolbuffers/protobuf",
|
||||
shallow_since = "1558721209 -0700",
|
||||
shallow_since = "1597443653 -0700",
|
||||
)
|
||||
|
||||
load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps")
|
||||
|
@ -35,40 +35,14 @@ go_library(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = [
|
||||
"main.go",
|
||||
"usage.go",
|
||||
],
|
||||
base = select({
|
||||
"//tools:base_image_alpine": "//tools:alpine_cc_image",
|
||||
"//tools:base_image_cc": "//tools:cc_image",
|
||||
"//conditions:default": "//tools:cc_image",
|
||||
}),
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/beacon-chain",
|
||||
race = "off",
|
||||
static = "off", # Static enabled binary seems to cause issues with DNS lookup with cgo.
|
||||
binary = ":beacon-chain",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//beacon-chain/flags:go_default_library",
|
||||
"//beacon-chain/node:go_default_library",
|
||||
"//shared/tos:go_default_library",
|
||||
"//shared/cmd:go_default_library",
|
||||
"//shared/debug:go_default_library",
|
||||
"//shared/featureconfig:go_default_library",
|
||||
"//shared/journald:go_default_library",
|
||||
"//shared/logutil:go_default_library",
|
||||
"//shared/maxprocs:go_default_library",
|
||||
"//shared/version:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//log:go_default_library",
|
||||
"@com_github_ipfs_go_log_v2//:go_default_library",
|
||||
"@com_github_joonix_log//:go_default_library",
|
||||
"@com_github_sirupsen_logrus//:go_default_library",
|
||||
"@com_github_urfave_cli_v2//:go_default_library",
|
||||
"@com_github_x_cray_logrus_prefixed_formatter//:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
container_bundle(
|
||||
|
@ -31,15 +31,15 @@ go_test(
|
||||
"//beacon-chain/core/helpers:go_default_library",
|
||||
"//beacon-chain/state:go_default_library",
|
||||
"//proto/beacon/p2p/v1:go_default_library",
|
||||
"//shared/params/spectest:go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/params/spectest:go_default_library",
|
||||
"//shared/testutil:go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
"@com_github_ghodss_yaml//:go_default_library",
|
||||
"@com_github_gogo_protobuf//proto:go_default_library",
|
||||
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
||||
"@in_gopkg_d4l3k_messagediff_v1//:go_default_library",
|
||||
"@io_bazel_rules_go//go/tools/bazel:go_default_library",
|
||||
"@com_github_ghodss_yaml//:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
@ -65,14 +65,14 @@ go_test(
|
||||
"//beacon-chain/core/helpers:go_default_library",
|
||||
"//beacon-chain/state:go_default_library",
|
||||
"//proto/beacon/p2p/v1:go_default_library",
|
||||
"//shared/params/spectest:go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/params/spectest:go_default_library",
|
||||
"//shared/testutil:go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
"@com_github_ghodss_yaml//:go_default_library",
|
||||
"@com_github_gogo_protobuf//proto:go_default_library",
|
||||
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
||||
"@in_gopkg_d4l3k_messagediff_v1//:go_default_library",
|
||||
"@io_bazel_rules_go//go/tools/bazel:go_default_library",
|
||||
"@com_github_ghodss_yaml//:go_default_library",
|
||||
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
||||
],
|
||||
)
|
||||
|
@ -30,8 +30,8 @@ go_test(
|
||||
"//beacon-chain/core/helpers:go_default_library",
|
||||
"//beacon-chain/state:go_default_library",
|
||||
"//proto/beacon/p2p/v1:go_default_library",
|
||||
"//shared/params/spectest:go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/params/spectest:go_default_library",
|
||||
"//shared/testutil:go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
"@com_github_gogo_protobuf//proto:go_default_library",
|
||||
@ -63,8 +63,8 @@ go_test(
|
||||
"//beacon-chain/core/helpers:go_default_library",
|
||||
"//beacon-chain/state:go_default_library",
|
||||
"//proto/beacon/p2p/v1:go_default_library",
|
||||
"//shared/params/spectest:go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/params/spectest:go_default_library",
|
||||
"//shared/testutil:go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
"@com_github_gogo_protobuf//proto:go_default_library",
|
||||
|
@ -19,8 +19,8 @@ go_test(
|
||||
name = "go_default_test",
|
||||
size = "small",
|
||||
srcs = ["validator_index_map_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//beacon-chain/state:go_default_library",
|
||||
"//proto/beacon/p2p/v1:go_default_library",
|
||||
"//shared/bytesutil:go_default_library",
|
||||
|
@ -25,23 +25,10 @@ go_binary(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = [
|
||||
"main.go",
|
||||
],
|
||||
base = "//tools:go_image",
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/beacon-chain/gateway/server",
|
||||
race = "off",
|
||||
binary = ":server",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//beacon-chain/gateway:go_default_library",
|
||||
"@com_github_grpc_ecosystem_grpc_gateway//runtime:go_default_library",
|
||||
"@com_github_joonix_log//:go_default_library",
|
||||
"@com_github_sirupsen_logrus//:go_default_library",
|
||||
"//shared/maxprocs:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
container_bundle(
|
||||
|
@ -19,8 +19,8 @@ go_library(
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["store_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
"@com_github_libp2p_go_libp2p_core//peer:go_default_library",
|
||||
|
@ -28,8 +28,8 @@ go_test(
|
||||
"scorers_test.go",
|
||||
"service_test.go",
|
||||
],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//beacon-chain/flags:go_default_library",
|
||||
"//beacon-chain/p2p/peers:go_default_library",
|
||||
"//beacon-chain/p2p/peers/peerdata:go_default_library",
|
||||
|
@ -16,15 +16,14 @@ go_library(
|
||||
visibility = [
|
||||
"//beacon-chain:__subpackages__",
|
||||
"//fuzz:__pkg__",
|
||||
"//shared/benchutil:__pkg__",
|
||||
"//shared/testutil:__pkg__",
|
||||
"//proto/testing:__subpackages__",
|
||||
"//shared/aggregation:__subpackages__",
|
||||
"//shared/benchutil:__pkg__",
|
||||
"//shared/depositutil:__subpackages__",
|
||||
"//shared/testutil:__pkg__",
|
||||
"//slasher/rpc:__subpackages__",
|
||||
"//tools/benchmark-files-gen:__pkg__",
|
||||
"//tools/pcli:__pkg__",
|
||||
"//shared/aggregation:__subpackages__",
|
||||
"//shared/depositutil:__subpackages__",
|
||||
"//proto/testing:__subpackages__",
|
||||
"//slasher/rpc:__subpackages__",
|
||||
],
|
||||
deps = [
|
||||
"//beacon-chain/core/state/stateutils:go_default_library",
|
||||
|
@ -15,10 +15,10 @@ go_library(
|
||||
visibility = [
|
||||
"//beacon-chain:__subpackages__",
|
||||
"//fuzz:__pkg__",
|
||||
"//proto/testing:__subpackages__",
|
||||
"//proto/migration:__subpackages__",
|
||||
"//shared/testutil:__subpackages__",
|
||||
"//proto/testing:__subpackages__",
|
||||
"//shared/blockutil:__subpackages__",
|
||||
"//shared/testutil:__subpackages__",
|
||||
"//slasher:__subpackages__",
|
||||
"//tools/blocktree:__pkg__",
|
||||
"//tools/pcli:__pkg__",
|
||||
|
@ -31,8 +31,8 @@ go_test(
|
||||
"depositContract_test.go",
|
||||
"deposit_tree_test.go",
|
||||
],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/interop:go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
|
12
deps.bzl
12
deps.bzl
@ -2812,17 +2812,6 @@ def prysm_deps():
|
||||
sum = "h1:JabkIV98VYFqYKHHzXtgGMFuRgFBNTNzBytbGByzrJI=",
|
||||
version = "v1.4.2",
|
||||
)
|
||||
go_repository(
|
||||
name = "com_github_libp2p_go_libp2p_tls",
|
||||
importpath = "github.com/libp2p/go-libp2p-tls",
|
||||
build_file_proto_mode = "disable_global",
|
||||
patch_args = ["-p1"],
|
||||
patches = [
|
||||
"@prysm//third_party:libp2p_tls.patch",
|
||||
],
|
||||
sum = "h1:twKMhMu44jQO+HgQK9X8NHO5HkeJu2QbhLzLJpa8oNM=",
|
||||
version = "v0.1.3",
|
||||
)
|
||||
go_repository(
|
||||
name = "com_github_golang_mock",
|
||||
importpath = "github.com/golang/mock",
|
||||
@ -3486,6 +3475,7 @@ def prysm_deps():
|
||||
name = "com_github_wealdtech_go_eth2_types_v2",
|
||||
build_directives = [
|
||||
"gazelle:resolve go github.com/herumi/bls-eth-go-binary/bls @herumi_bls_eth_go_binary//:go_default_library",
|
||||
"gazelle:resolve go github.com/prysmaticlabs/go-ssz @com_github_prysmaticlabs_go_ssz//:go_default_library",
|
||||
],
|
||||
importpath = "github.com/wealdtech/go-eth2-types/v2",
|
||||
sum = "h1:L8sl3yoICAbn3134CBLNUt0o5h2voe0Es2KD5O9r8YQ=",
|
||||
|
2
go.mod
2
go.mod
@ -1,6 +1,6 @@
|
||||
module github.com/prysmaticlabs/prysm
|
||||
|
||||
go 1.14
|
||||
go 1.15
|
||||
|
||||
require (
|
||||
contrib.go.opencensus.io/exporter/jaeger v0.2.1
|
||||
|
@ -20,8 +20,8 @@ go_library(
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["attestation_utils_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
|
@ -12,8 +12,8 @@ go_test(
|
||||
name = "go_default_test",
|
||||
size = "small",
|
||||
srcs = ["bytes_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
],
|
||||
|
@ -25,8 +25,8 @@ go_library(
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["deposit_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//beacon-chain/core/helpers:go_default_library",
|
||||
"//proto/beacon/p2p/v1:go_default_library",
|
||||
"//shared/bls:go_default_library",
|
||||
|
@ -16,8 +16,8 @@ go_library(
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["fileutil_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/testutil:go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
|
@ -26,8 +26,8 @@ go_test(
|
||||
"hash_test.go",
|
||||
"merkleRoot_test.go",
|
||||
],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//proto/testing:go_default_library",
|
||||
"//shared/bls:go_default_library",
|
||||
"//shared/bytesutil:go_default_library",
|
||||
|
@ -33,8 +33,8 @@ go_test(
|
||||
"htrutils_test.go",
|
||||
"merkleize_test.go",
|
||||
],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//proto/beacon/p2p/v1:go_default_library",
|
||||
"//shared/hashutil:go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
|
@ -34,8 +34,8 @@ go_test(
|
||||
data = [
|
||||
"keygen_test_vector.yaml",
|
||||
],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//beacon-chain/core/state:go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
|
@ -12,9 +12,9 @@ go_test(
|
||||
name = "go_default_test",
|
||||
size = "small",
|
||||
srcs = ["external_ip_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
tags = ["requires-network"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
],
|
||||
|
@ -12,6 +12,8 @@ go_test(
|
||||
name = "go_default_test",
|
||||
size = "small",
|
||||
srcs = ["math_helper_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = ["//shared/testutil/require:go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
],
|
||||
)
|
||||
|
@ -17,8 +17,8 @@ go_test(
|
||||
name = "go_default_test",
|
||||
size = "small",
|
||||
srcs = ["messagehandler_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
"@com_github_gogo_protobuf//proto:go_default_library",
|
||||
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
||||
|
@ -15,8 +15,8 @@ go_library(
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["pagination_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
],
|
||||
|
@ -12,5 +12,5 @@ go_library(
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["every_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [":go_default_library"],
|
||||
)
|
||||
|
@ -15,5 +15,5 @@ go_test(
|
||||
name = "go_default_test",
|
||||
size = "small",
|
||||
srcs = ["slice_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [":go_default_library"],
|
||||
)
|
||||
|
@ -15,8 +15,8 @@ go_library(
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["assertions_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
||||
|
@ -43,33 +43,10 @@ go_test(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = [
|
||||
"main.go",
|
||||
"usage.go",
|
||||
],
|
||||
base = "//tools:cc_image",
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/slasher",
|
||||
race = "off",
|
||||
static = "off",
|
||||
binary = ":slasher",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//shared/tos:go_default_library",
|
||||
"//shared/cmd:go_default_library",
|
||||
"//shared/debug:go_default_library",
|
||||
"//shared/featureconfig:go_default_library",
|
||||
"//shared/journald:go_default_library",
|
||||
"//shared/logutil:go_default_library",
|
||||
"//shared/version:go_default_library",
|
||||
"//slasher/flags:go_default_library",
|
||||
"//slasher/node:go_default_library",
|
||||
"@com_github_joonix_log//:go_default_library",
|
||||
"@com_github_sirupsen_logrus//:go_default_library",
|
||||
"@com_github_urfave_cli_v2//:go_default_library",
|
||||
"@com_github_x_cray_logrus_prefixed_formatter//:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
container_bundle(
|
||||
|
@ -21,8 +21,8 @@ go_test(
|
||||
"epoch_store_test.go",
|
||||
"types_test.go",
|
||||
],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
"//shared/testutil/require:go_default_library",
|
||||
"//slasher/db/testing:go_default_library",
|
||||
|
2
third_party/herumi/bls_eth_go_binary.BUILD
vendored
2
third_party/herumi/bls_eth_go_binary.BUILD
vendored
@ -153,7 +153,7 @@ go_library(
|
||||
"@com_github_wealdtech_go_eth2_types_v2//:__pkg__",
|
||||
],
|
||||
clinkopts = select({
|
||||
"@prysm//fuzz:fuzzing_enabled": ["-Wl,--unresolved-symbols=ignore-all"],
|
||||
"@prysm//fuzz:fuzzing_enabled": ["-Wl,--unresolved-symbols=ignore-all", "-fsanitize=address"],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
)
|
||||
|
13
third_party/io_bazel_rules_go.patch
vendored
13
third_party/io_bazel_rules_go.patch
vendored
@ -1,16 +1,21 @@
|
||||
diff --git a/go/tools/builders/nogo_main.go b/go/tools/builders/nogo_main.go
|
||||
index 767aa3b5..fbd13082 100644
|
||||
index 2830a666..ce0e6e39 100644
|
||||
--- a/go/tools/builders/nogo_main.go
|
||||
+++ b/go/tools/builders/nogo_main.go
|
||||
@@ -386,7 +386,11 @@ func checkAnalysisResults(actions []*action, pkg *goPackage) string {
|
||||
@@ -386,13 +386,11 @@ func checkAnalysisResults(actions []*action, pkg *goPackage) string {
|
||||
}
|
||||
// Discard diagnostics based on the analyzer configuration.
|
||||
for _, d := range act.diagnostics {
|
||||
- filename := pkg.fset.File(d.Pos).Name()
|
||||
- // NOTE(golang.org/issue/31008): nilness does not set positions,
|
||||
- // so don't assume the position is valid.
|
||||
- f := pkg.fset.File(d.Pos)
|
||||
- filename := "-"
|
||||
- if f != nil {
|
||||
- filename = f.Name()
|
||||
+ file := pkg.fset.File(d.Pos)
|
||||
+ if file == nil {
|
||||
+ continue
|
||||
+ }
|
||||
}
|
||||
+ filename := file.Name()
|
||||
include := true
|
||||
if len(config.onlyFiles) > 0 {
|
||||
|
@ -35,43 +35,10 @@ go_library(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = ["bootnode.go"],
|
||||
base = "//tools:cc_image",
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/tools/bootnode",
|
||||
race = "off",
|
||||
binary = ":bootnode",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//beacon-chain/core/helpers:go_default_library",
|
||||
"//proto/beacon/p2p/v1:go_default_library",
|
||||
"//shared/iputils:go_default_library",
|
||||
"//shared/logutil:go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/bytesutil:go_default_library",
|
||||
"//shared/runutil:go_default_library",
|
||||
"//shared/version:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//crypto:go_default_library",
|
||||
"@com_github_btcsuite_btcd//btcec:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//log:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//p2p/discover:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//p2p/enode:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//p2p/enr:go_default_library",
|
||||
"@com_github_ipfs_go_datastore//:go_default_library",
|
||||
"@com_github_ipfs_go_datastore//sync:go_default_library",
|
||||
"@com_github_ipfs_go_log//:go_default_library",
|
||||
"@com_github_libp2p_go_libp2p//:go_default_library",
|
||||
"@com_github_libp2p_go_libp2p_core//crypto:go_default_library",
|
||||
"@com_github_multiformats_go_multiaddr//:go_default_library",
|
||||
"@com_github_pkg_errors//:go_default_library",
|
||||
"@com_github_prometheus_client_golang//prometheus:go_default_library",
|
||||
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
|
||||
"@com_github_prysmaticlabs_go_bitfield//:go_default_library",
|
||||
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
||||
"@com_github_sirupsen_logrus//:go_default_library",
|
||||
"//shared/maxprocs:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
go_binary(
|
||||
|
@ -26,24 +26,10 @@ go_binary(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = ["main.go"],
|
||||
base = "//tools:cc_image",
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/tools/cluster-pk-manager/client",
|
||||
pure = "off",
|
||||
race = "off",
|
||||
binary = ":client",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//proto/cluster:go_default_library",
|
||||
"//shared/bls:go_default_library",
|
||||
"//shared/keystore:go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"@com_github_bazelbuild_buildtools//file:go_default_library",
|
||||
"@org_golang_google_grpc//:go_default_library",
|
||||
"//shared/maxprocs:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
container_bundle(
|
||||
|
@ -66,55 +66,10 @@ go_test(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = [
|
||||
"allocations.go",
|
||||
"db.go",
|
||||
"keyChecker.go",
|
||||
"logger.go",
|
||||
"main.go",
|
||||
"server.go",
|
||||
"watchtower.go",
|
||||
],
|
||||
base = "//tools:cc_image",
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/tools/cluster-pk-manager/server",
|
||||
pure = "off", # depends on cgo for go-ethereum crypto
|
||||
race = "off",
|
||||
static = "off",
|
||||
binary = ":server",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//contracts/deposit-contract:go_default_library",
|
||||
"//proto/cluster:go_default_library",
|
||||
"//shared/bls:go_default_library",
|
||||
"//shared/bytesutil:go_default_library",
|
||||
"//shared/depositutil:go_default_library",
|
||||
"//shared/keystore:go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/prometheus:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//accounts/abi/bind:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//core/types:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//crypto:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//ethclient:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//rpc:go_default_library",
|
||||
"@com_github_gogo_protobuf//proto:go_default_library",
|
||||
"@com_github_pkg_errors//:go_default_library",
|
||||
"@com_github_prometheus_client_golang//prometheus:go_default_library",
|
||||
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
|
||||
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
||||
"@com_github_sirupsen_logrus//:go_default_library",
|
||||
"@io_etcd_go_bbolt//:go_default_library",
|
||||
"@io_k8s_api//core/v1:go_default_library",
|
||||
"@io_k8s_apimachinery//pkg/apis/meta/v1:go_default_library",
|
||||
"@io_k8s_client_go//kubernetes:go_default_library",
|
||||
"@io_k8s_client_go//rest:go_default_library",
|
||||
"@io_opencensus_go//plugin/ocgrpc:go_default_library",
|
||||
"@org_golang_google_grpc//:go_default_library",
|
||||
"//shared/maxprocs:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
container_bundle(
|
||||
|
@ -20,16 +20,10 @@ go_binary(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = ["main.go"],
|
||||
base = "//tools:go_image",
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/tools/contract-addr",
|
||||
pure = "on",
|
||||
race = "off",
|
||||
binary = ":contract-addr",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = ["//shared/maxprocs:go_default_library"],
|
||||
)
|
||||
|
||||
container_bundle(
|
||||
|
@ -25,7 +25,7 @@ RUN apt-get update && \
|
||||
pkg-config make docker.io gnupg2 libgmp-dev python
|
||||
|
||||
# install llvm/clang cross-build toolchains
|
||||
ENV INSTALL_LLVM_VERSION=10.0.0-rc2
|
||||
ENV INSTALL_LLVM_VERSION=10.0.0
|
||||
ADD install_clang_cross10.sh /tmp/install_clang_cross.sh
|
||||
RUN /tmp/install_clang_cross.sh
|
||||
|
||||
|
@ -28,18 +28,13 @@ def _impl(ctx):
|
||||
target_libc = "macosx"
|
||||
target_cpu = "x86_64"
|
||||
osxcross = install + "osxcross/"
|
||||
osxcross_binprefix = osxcross + "bin/x86_64-apple-darwin14-"
|
||||
sdkroot = osxcross + "SDK/MacOSX10.10.sdk/"
|
||||
osxcross_binprefix = osxcross + "bin/x86_64-apple-darwin19-"
|
||||
sdkroot = osxcross + "SDK/MacOSX10.15.sdk/"
|
||||
cross_system_include_dirs = [
|
||||
"/usr/lib/clang/10.0.0/include",
|
||||
osxcross + "include",
|
||||
sdkroot + "usr/include",
|
||||
]
|
||||
cross_system_lib_dirs = [
|
||||
"/usr/x86_64-apple-darwin/lib",
|
||||
sdkroot + "usr/lib",
|
||||
osxcross + "/lib",
|
||||
]
|
||||
|
||||
opt_feature = feature(name = "opt")
|
||||
dbg_feature = feature(name = "dbg")
|
||||
@ -138,7 +133,6 @@ def _impl(ctx):
|
||||
"-v",
|
||||
"-lm",
|
||||
"-no-canonical-prefixes",
|
||||
"-fuse-ld=lld",
|
||||
"-lc++",
|
||||
"-lc++abi",
|
||||
"-F" + sdkroot + "System/Library/Frameworks/",
|
||||
|
@ -19,13 +19,13 @@
|
||||
# Specifically, it includes all toolchain/platform flags
|
||||
# This file is used for testing purposes.
|
||||
|
||||
build:remote --host_javabase=//tools/cross-toolchain/configs/gcc/bazel_3.2.0/java:jdk
|
||||
build:remote --javabase=//tools/cross-toolchain/configs/gcc/bazel_3.2.0/java:jdk
|
||||
build:remote --crosstool_top=//tools/cross-toolchain/configs/gcc/bazel_3.2.0/cc:toolchain
|
||||
build:remote --extra_toolchains=//tools/cross-toolchain/configs/gcc/bazel_3.2.0/config:cc-toolchain
|
||||
build:remote --extra_execution_platforms=//tools/cross-toolchain/configs/gcc/bazel_3.2.0/config:platform
|
||||
build:remote --host_platform=//tools/cross-toolchain/configs/gcc/bazel_3.2.0/config:platform
|
||||
build:remote --platforms=//tools/cross-toolchain/configs/gcc/bazel_3.2.0/config:platform
|
||||
build:remote --host_javabase=//tools/cross-toolchain/configs/clang/bazel_3.7.0/java:jdk
|
||||
build:remote --javabase=//tools/cross-toolchain/configs/clang/bazel_3.7.0/java:jdk
|
||||
build:remote --crosstool_top=//tools/cross-toolchain/configs/clang/bazel_3.7.0/cc:toolchain
|
||||
build:remote --extra_toolchains=//tools/cross-toolchain/configs/clang/bazel_3.7.0/config:cc-toolchain
|
||||
build:remote --extra_execution_platforms=//tools/cross-toolchain/configs/clang/bazel_3.7.0/config:platform
|
||||
build:remote --host_platform=//tools/cross-toolchain/configs/clang/bazel_3.7.0/config:platform
|
||||
build:remote --platforms=//tools/cross-toolchain/configs/clang/bazel_3.7.0/config:platform
|
||||
|
||||
# Import the default bazelrc file in bazel-toolchains repo.
|
||||
# This will only work for tests executed from bazel-toolchains
|
||||
|
@ -59,8 +59,6 @@ cc_toolchain_suite(
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-k8",
|
||||
toolchain_identifier = "local",
|
||||
toolchain_config = ":local",
|
||||
all_files = ":compiler_deps",
|
||||
ar_files = ":compiler_deps",
|
||||
as_files = ":compiler_deps",
|
||||
@ -70,18 +68,30 @@ cc_toolchain(
|
||||
objcopy_files = ":empty",
|
||||
strip_files = ":empty",
|
||||
supports_param_files = 1,
|
||||
toolchain_config = ":local",
|
||||
toolchain_identifier = "local",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "local",
|
||||
cpu = "k8",
|
||||
compiler = "clang",
|
||||
toolchain_identifier = "local",
|
||||
host_system_name = "local",
|
||||
target_system_name = "local",
|
||||
target_libc = "local",
|
||||
abi_version = "local",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
compile_flags = [
|
||||
"-U_FORTIFY_SOURCE",
|
||||
"-fstack-protector",
|
||||
"-Wall",
|
||||
"-Wthread-safety",
|
||||
"-Wself-assign",
|
||||
"-fcolor-diagnostics",
|
||||
"-fno-omit-frame-pointer",
|
||||
],
|
||||
compiler = "clang",
|
||||
coverage_compile_flags = [
|
||||
"-fprofile-instr-generate",
|
||||
"-fcoverage-mapping",
|
||||
],
|
||||
coverage_link_flags = ["-fprofile-instr-generate"],
|
||||
cpu = "k8",
|
||||
cxx_builtin_include_directories = [
|
||||
"/usr/local/include",
|
||||
"/usr/lib/clang/10.0.0/include",
|
||||
@ -92,6 +102,30 @@ cc_toolchain_config(
|
||||
"/usr/include/x86_64-linux-gnu/c++/8",
|
||||
"/usr/include/c++/8/backward",
|
||||
],
|
||||
cxx_flags = ["-std=c++0x"],
|
||||
dbg_compile_flags = ["-g"],
|
||||
host_system_name = "local",
|
||||
link_flags = [
|
||||
"-fuse-ld=/usr/bin/ld.gold",
|
||||
"-Wl,-no-as-needed",
|
||||
"-Wl,-z,relro,-z,now",
|
||||
"-B/usr/bin",
|
||||
"-lm",
|
||||
"-static-libgcc",
|
||||
],
|
||||
link_libs = ["-l:libstdc++.a"],
|
||||
opt_compile_flags = [
|
||||
"-g0",
|
||||
"-O2",
|
||||
"-D_FORTIFY_SOURCE=1",
|
||||
"-DNDEBUG",
|
||||
"-ffunction-sections",
|
||||
"-fdata-sections",
|
||||
],
|
||||
opt_link_flags = ["-Wl,--gc-sections"],
|
||||
supports_start_end_lib = True,
|
||||
target_libc = "local",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "/usr/bin/ar",
|
||||
"ld": "/usr/bin/ld",
|
||||
@ -104,35 +138,7 @@ cc_toolchain_config(
|
||||
"objdump": "/usr/bin/objdump",
|
||||
"strip": "/usr/bin/strip",
|
||||
},
|
||||
compile_flags = [
|
||||
"-U_FORTIFY_SOURCE",
|
||||
"-fstack-protector",
|
||||
"-Wall",
|
||||
"-Wthread-safety",
|
||||
"-Wself-assign",
|
||||
"-fcolor-diagnostics",
|
||||
"-fno-omit-frame-pointer",
|
||||
],
|
||||
opt_compile_flags = [
|
||||
"-g0",
|
||||
"-O2",
|
||||
"-D_FORTIFY_SOURCE=1",
|
||||
"-DNDEBUG",
|
||||
"-ffunction-sections",
|
||||
"-fdata-sections",
|
||||
],
|
||||
dbg_compile_flags = ["-g"],
|
||||
cxx_flags = ["-std=c++0x"],
|
||||
link_flags = [
|
||||
"-fuse-ld=/usr/bin/ld.gold",
|
||||
"-Wl,-no-as-needed",
|
||||
"-Wl,-z,relro,-z,now",
|
||||
"-B/usr/bin",
|
||||
"-lm",
|
||||
"-static-libgcc",
|
||||
],
|
||||
link_libs = ["-l:libstdc++.a"],
|
||||
opt_link_flags = ["-Wl,--gc-sections"],
|
||||
toolchain_identifier = "local",
|
||||
unfiltered_compile_flags = [
|
||||
"-no-canonical-prefixes",
|
||||
"-Wno-builtin-macro-redefined",
|
||||
@ -140,19 +146,11 @@ cc_toolchain_config(
|
||||
"-D__TIMESTAMP__=\"redacted\"",
|
||||
"-D__TIME__=\"redacted\"",
|
||||
],
|
||||
coverage_compile_flags = [
|
||||
"-fprofile-instr-generate",
|
||||
"-fcoverage-mapping",
|
||||
],
|
||||
coverage_link_flags = ["-fprofile-instr-generate"],
|
||||
supports_start_end_lib = True,
|
||||
)
|
||||
|
||||
# Android tooling requires a default toolchain for the armeabi-v7a cpu.
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-armeabi-v7a",
|
||||
toolchain_identifier = "stub_armeabi-v7a",
|
||||
toolchain_config = ":stub_armeabi-v7a",
|
||||
all_files = ":empty",
|
||||
ar_files = ":empty",
|
||||
as_files = ":empty",
|
||||
@ -162,6 +160,8 @@ cc_toolchain(
|
||||
objcopy_files = ":empty",
|
||||
strip_files = ":empty",
|
||||
supports_param_files = 1,
|
||||
toolchain_config = ":stub_armeabi-v7a",
|
||||
toolchain_identifier = "stub_armeabi-v7a",
|
||||
)
|
||||
|
||||
armeabi_cc_toolchain_config(name = "stub_armeabi-v7a")
|
||||
|
@ -41,7 +41,7 @@ platform(
|
||||
"@bazel_tools//tools/cpp:clang",
|
||||
],
|
||||
exec_properties = {
|
||||
"container-image": "docker://gcr.io/prysmaticlabs/rbe-worker@sha256:fdd160ed95406580948fb93c2618ca12fbd3fa93afabb84bf4bfbb2e6bdd7dbd",
|
||||
"container-image": "docker://gcr.io/prysmaticlabs/rbe-worker@sha256:0175024b0968eee56a50d4d813c4b2fc68dca90e7ecc453cdae6e82e112b845d",
|
||||
"OSFamily": "Linux",
|
||||
},
|
||||
)
|
||||
|
168
tools/cross-toolchain/configs/clang/bazel_3.7.0/cc/BUILD
Executable file
168
tools/cross-toolchain/configs/clang/bazel_3.7.0/cc/BUILD
Executable file
@ -0,0 +1,168 @@
|
||||
# Copyright 2016 The Bazel Authors. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# This becomes the BUILD file for @local_config_cc// under non-BSD unixes.
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load(":cc_toolchain_config.bzl", "cc_toolchain_config")
|
||||
load(":armeabi_cc_toolchain_config.bzl", "armeabi_cc_toolchain_config")
|
||||
load("@rules_cc//cc:defs.bzl", "cc_toolchain", "cc_toolchain_suite")
|
||||
|
||||
licenses(["notice"]) # Apache 2.0
|
||||
|
||||
cc_library(
|
||||
name = "malloc",
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "empty",
|
||||
srcs = [],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "cc_wrapper",
|
||||
srcs = ["cc_wrapper.sh"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "compiler_deps",
|
||||
srcs = glob(
|
||||
["extra_tools/**"],
|
||||
allow_empty = True,
|
||||
) + [":builtin_include_directory_paths"],
|
||||
)
|
||||
|
||||
# This is the entry point for --crosstool_top. Toolchains are found
|
||||
# by lopping off the name of --crosstool_top and searching for
|
||||
# the "${CPU}" entry in the toolchains attribute.
|
||||
cc_toolchain_suite(
|
||||
name = "toolchain",
|
||||
toolchains = {
|
||||
"k8|clang": ":cc-compiler-k8",
|
||||
"k8": ":cc-compiler-k8",
|
||||
"armeabi-v7a|compiler": ":cc-compiler-armeabi-v7a",
|
||||
"armeabi-v7a": ":cc-compiler-armeabi-v7a",
|
||||
},
|
||||
)
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-k8",
|
||||
all_files = ":compiler_deps",
|
||||
ar_files = ":compiler_deps",
|
||||
as_files = ":compiler_deps",
|
||||
compiler_files = ":compiler_deps",
|
||||
dwp_files = ":empty",
|
||||
linker_files = ":compiler_deps",
|
||||
module_map = ":module.modulemap",
|
||||
objcopy_files = ":empty",
|
||||
strip_files = ":empty",
|
||||
supports_param_files = 1,
|
||||
toolchain_config = ":local",
|
||||
toolchain_identifier = "local",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "local",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
compile_flags = [
|
||||
"-U_FORTIFY_SOURCE",
|
||||
"-fstack-protector",
|
||||
"-Wall",
|
||||
"-Wthread-safety",
|
||||
"-Wself-assign",
|
||||
"-fcolor-diagnostics",
|
||||
"-fno-omit-frame-pointer",
|
||||
],
|
||||
compiler = "clang",
|
||||
coverage_compile_flags = [
|
||||
"-fprofile-instr-generate",
|
||||
"-fcoverage-mapping",
|
||||
],
|
||||
coverage_link_flags = ["-fprofile-instr-generate"],
|
||||
cpu = "k8",
|
||||
cxx_builtin_include_directories = [
|
||||
"/usr/local/include",
|
||||
"/usr/lib/clang/10.0.0/include",
|
||||
"/usr/include/x86_64-linux-gnu",
|
||||
"/usr/include",
|
||||
"/usr/lib/clang/10.0.0/share",
|
||||
"/usr/include/c++/8",
|
||||
"/usr/include/x86_64-linux-gnu/c++/8",
|
||||
"/usr/include/c++/8/backward",
|
||||
],
|
||||
cxx_flags = ["-std=c++0x"],
|
||||
dbg_compile_flags = ["-g"],
|
||||
host_system_name = "local",
|
||||
link_flags = [
|
||||
"-fuse-ld=/usr/bin/ld.gold",
|
||||
"-Wl,-no-as-needed",
|
||||
"-Wl,-z,relro,-z,now",
|
||||
"-B/usr/bin",
|
||||
"-lm",
|
||||
"-static-libgcc",
|
||||
],
|
||||
link_libs = ["-l:libstdc++.a"],
|
||||
opt_compile_flags = [
|
||||
"-g0",
|
||||
"-O2",
|
||||
"-D_FORTIFY_SOURCE=1",
|
||||
"-DNDEBUG",
|
||||
"-ffunction-sections",
|
||||
"-fdata-sections",
|
||||
],
|
||||
opt_link_flags = ["-Wl,--gc-sections"],
|
||||
supports_start_end_lib = True,
|
||||
target_libc = "local",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "/usr/bin/ar",
|
||||
"ld": "/usr/bin/ld",
|
||||
"cpp": "/usr/bin/cpp",
|
||||
"gcc": "/usr/bin/clang",
|
||||
"dwp": "/usr/bin/dwp",
|
||||
"gcov": "/usr/bin/llvm-profdata",
|
||||
"nm": "/usr/bin/nm",
|
||||
"objcopy": "/usr/bin/objcopy",
|
||||
"objdump": "/usr/bin/objdump",
|
||||
"strip": "/usr/bin/strip",
|
||||
},
|
||||
toolchain_identifier = "local",
|
||||
unfiltered_compile_flags = [
|
||||
"-no-canonical-prefixes",
|
||||
"-Wno-builtin-macro-redefined",
|
||||
"-D__DATE__=\"redacted\"",
|
||||
"-D__TIMESTAMP__=\"redacted\"",
|
||||
"-D__TIME__=\"redacted\"",
|
||||
],
|
||||
)
|
||||
|
||||
# Android tooling requires a default toolchain for the armeabi-v7a cpu.
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-armeabi-v7a",
|
||||
all_files = ":empty",
|
||||
ar_files = ":empty",
|
||||
as_files = ":empty",
|
||||
compiler_files = ":empty",
|
||||
dwp_files = ":empty",
|
||||
linker_files = ":empty",
|
||||
objcopy_files = ":empty",
|
||||
strip_files = ":empty",
|
||||
supports_param_files = 1,
|
||||
toolchain_config = ":stub_armeabi-v7a",
|
||||
toolchain_identifier = "stub_armeabi-v7a",
|
||||
)
|
||||
|
||||
armeabi_cc_toolchain_config(name = "stub_armeabi-v7a")
|
@ -0,0 +1,82 @@
|
||||
# Copyright 2019 The Bazel Authors. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
"""A Starlark cc_toolchain configuration rule"""
|
||||
|
||||
load(
|
||||
"@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl",
|
||||
"feature",
|
||||
"tool_path",
|
||||
)
|
||||
|
||||
def _impl(ctx):
|
||||
toolchain_identifier = "stub_armeabi-v7a"
|
||||
host_system_name = "armeabi-v7a"
|
||||
target_system_name = "armeabi-v7a"
|
||||
target_cpu = "armeabi-v7a"
|
||||
target_libc = "armeabi-v7a"
|
||||
compiler = "compiler"
|
||||
abi_version = "armeabi-v7a"
|
||||
abi_libc_version = "armeabi-v7a"
|
||||
cc_target_os = None
|
||||
builtin_sysroot = None
|
||||
action_configs = []
|
||||
|
||||
supports_pic_feature = feature(name = "supports_pic", enabled = True)
|
||||
supports_dynamic_linker_feature = feature(name = "supports_dynamic_linker", enabled = True)
|
||||
features = [supports_dynamic_linker_feature, supports_pic_feature]
|
||||
|
||||
cxx_builtin_include_directories = []
|
||||
artifact_name_patterns = []
|
||||
make_variables = []
|
||||
|
||||
tool_paths = [
|
||||
tool_path(name = "ar", path = "/bin/false"),
|
||||
tool_path(name = "compat-ld", path = "/bin/false"),
|
||||
tool_path(name = "cpp", path = "/bin/false"),
|
||||
tool_path(name = "dwp", path = "/bin/false"),
|
||||
tool_path(name = "gcc", path = "/bin/false"),
|
||||
tool_path(name = "gcov", path = "/bin/false"),
|
||||
tool_path(name = "ld", path = "/bin/false"),
|
||||
tool_path(name = "nm", path = "/bin/false"),
|
||||
tool_path(name = "objcopy", path = "/bin/false"),
|
||||
tool_path(name = "objdump", path = "/bin/false"),
|
||||
tool_path(name = "strip", path = "/bin/false"),
|
||||
]
|
||||
|
||||
return cc_common.create_cc_toolchain_config_info(
|
||||
ctx = ctx,
|
||||
features = features,
|
||||
action_configs = action_configs,
|
||||
artifact_name_patterns = artifact_name_patterns,
|
||||
cxx_builtin_include_directories = cxx_builtin_include_directories,
|
||||
toolchain_identifier = toolchain_identifier,
|
||||
host_system_name = host_system_name,
|
||||
target_system_name = target_system_name,
|
||||
target_cpu = target_cpu,
|
||||
target_libc = target_libc,
|
||||
compiler = compiler,
|
||||
abi_version = abi_version,
|
||||
abi_libc_version = abi_libc_version,
|
||||
tool_paths = tool_paths,
|
||||
make_variables = make_variables,
|
||||
builtin_sysroot = builtin_sysroot,
|
||||
cc_target_os = cc_target_os,
|
||||
)
|
||||
|
||||
armeabi_cc_toolchain_config = rule(
|
||||
implementation = _impl,
|
||||
attrs = {},
|
||||
provides = [CcToolchainConfigInfo],
|
||||
)
|
@ -0,0 +1,14 @@
|
||||
This file is generated by cc_configure and contains builtin include directories
|
||||
that /usr/bin/clang reported. This file is a dependency of every compilation action and
|
||||
changes to it will be reflected in the action cache key. When some of these
|
||||
paths change, Bazel will make sure to rerun the action, even though none of
|
||||
declared action inputs or the action commandline changes.
|
||||
|
||||
/usr/local/include
|
||||
/usr/lib/clang/10.0.0/include
|
||||
/usr/include/x86_64-linux-gnu
|
||||
/usr/include
|
||||
/usr/lib/clang/10.0.0/share
|
||||
/usr/include/c++/8
|
||||
/usr/include/x86_64-linux-gnu/c++/8
|
||||
/usr/include/c++/8/backward
|
1257
tools/cross-toolchain/configs/clang/bazel_3.7.0/cc/cc_toolchain_config.bzl
Executable file
1257
tools/cross-toolchain/configs/clang/bazel_3.7.0/cc/cc_toolchain_config.bzl
Executable file
File diff suppressed because it is too large
Load Diff
25
tools/cross-toolchain/configs/clang/bazel_3.7.0/cc/cc_wrapper.sh
Executable file
25
tools/cross-toolchain/configs/clang/bazel_3.7.0/cc/cc_wrapper.sh
Executable file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Copyright 2015 The Bazel Authors. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
# Ship the environment to the C++ action
|
||||
#
|
||||
set -eu
|
||||
|
||||
# Set-up the environment
|
||||
|
||||
|
||||
# Call the C++ compiler
|
||||
/usr/bin/clang "$@"
|
6110
tools/cross-toolchain/configs/clang/bazel_3.7.0/cc/module.modulemap
Executable file
6110
tools/cross-toolchain/configs/clang/bazel_3.7.0/cc/module.modulemap
Executable file
File diff suppressed because it is too large
Load Diff
47
tools/cross-toolchain/configs/clang/bazel_3.7.0/config/BUILD
Normal file
47
tools/cross-toolchain/configs/clang/bazel_3.7.0/config/BUILD
Normal file
@ -0,0 +1,47 @@
|
||||
# Copyright 2016 The Bazel Authors. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# This file is auto-generated by an rbe_autoconfig repository rule
|
||||
# and should not be modified directly.
|
||||
# See @bazel_toolchains//rules:rbe_repo.bzl
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain",
|
||||
exec_compatible_with = [
|
||||
"@bazel_tools//platforms:x86_64",
|
||||
"@bazel_tools//platforms:linux",
|
||||
"@bazel_tools//tools/cpp:clang",
|
||||
],
|
||||
target_compatible_with = [
|
||||
"@bazel_tools//platforms:linux",
|
||||
"@bazel_tools//platforms:x86_64",
|
||||
],
|
||||
toolchain = "//tools/cross-toolchain/configs/clang/bazel_3.7.0/cc:cc-compiler-k8",
|
||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||
)
|
||||
|
||||
platform(
|
||||
name = "platform",
|
||||
constraint_values = [
|
||||
"@bazel_tools//platforms:x86_64",
|
||||
"@bazel_tools//platforms:linux",
|
||||
"@bazel_tools//tools/cpp:clang",
|
||||
],
|
||||
exec_properties = {
|
||||
"container-image": "docker://gcr.io/prysmaticlabs/rbe-worker@sha256:d5fa14154811dff0886e4c808dc15f18c4bb8545a1ef3c53805a0db13564bdad",
|
||||
"OSFamily": "Linux",
|
||||
},
|
||||
)
|
25
tools/cross-toolchain/configs/clang/bazel_3.7.0/java/BUILD
Normal file
25
tools/cross-toolchain/configs/clang/bazel_3.7.0/java/BUILD
Normal file
@ -0,0 +1,25 @@
|
||||
# Copyright 2016 The Bazel Authors. All rights reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
# This file is auto-generated by an rbe_autoconfig repository rule
|
||||
# and should not be modified directly.
|
||||
# See @bazel_toolchains//rules:rbe_repo.bzl
|
||||
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
java_runtime(
|
||||
name = "jdk",
|
||||
srcs = [],
|
||||
java_home = "/usr/lib/jvm/java-8-openjdk-amd64",
|
||||
)
|
147
tools/cross-toolchain/configs/clang/bazel_3.7.0/prysm_toolchains/BUILD.bazel
Executable file
147
tools/cross-toolchain/configs/clang/bazel_3.7.0/prysm_toolchains/BUILD.bazel
Executable file
@ -0,0 +1,147 @@
|
||||
package(default_visibility = ["//visibility:public"])
|
||||
|
||||
load(":cc_toolchain_config_osx.bzl", "osx_cc_toolchain_config")
|
||||
load(":cc_toolchain_config_linux_arm64.bzl", "arm64_cc_toolchain_config")
|
||||
load(":cc_toolchain_config_windows.bzl", "windows_cc_toolchain_config")
|
||||
|
||||
cc_toolchain_suite(
|
||||
name = "multiarch_toolchain",
|
||||
toolchains = {
|
||||
"k8|osxcross": ":cc-clang-osx",
|
||||
"k8|clang": "cc-clang-amd64",
|
||||
"aarch64|clang": ":cc-clang-arm64",
|
||||
"k8": "cc-clang-amd64",
|
||||
"aarch64": ":cc-clang-arm64",
|
||||
"k8|mingw-w64": ":cc-mingw-amd64",
|
||||
},
|
||||
)
|
||||
|
||||
cc_toolchain_suite(
|
||||
name = "hostonly_toolchain",
|
||||
toolchains = {
|
||||
"k8": "cc-clang-amd64",
|
||||
},
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "empty",
|
||||
srcs = [],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "osx_amd64",
|
||||
constraint_values = [
|
||||
"@platforms//os:osx",
|
||||
"@platforms//cpu:x86_64",
|
||||
],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "linux_arm64",
|
||||
constraint_values = [
|
||||
"@platforms//os:linux",
|
||||
"@platforms//cpu:aarch64",
|
||||
],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "linux_amd64",
|
||||
constraint_values = [
|
||||
"@platforms//os:linux",
|
||||
"@platforms//cpu:x86_64",
|
||||
],
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "windows_amd64",
|
||||
constraint_values = [
|
||||
"@platforms//os:windows",
|
||||
"@platforms//cpu:x86_64",
|
||||
],
|
||||
)
|
||||
|
||||
arm64_cc_toolchain_config(
|
||||
name = "local-arm64",
|
||||
target = "aarch64-linux-gnu",
|
||||
)
|
||||
|
||||
arm64_cc_toolchain_config(
|
||||
name = "local-amd64",
|
||||
target = "x86_64-unknown-linux-gnu",
|
||||
)
|
||||
|
||||
osx_cc_toolchain_config(
|
||||
name = "local-osxcross",
|
||||
target = "darwin_x86_64",
|
||||
)
|
||||
|
||||
windows_cc_toolchain_config(
|
||||
name = "local-windows",
|
||||
target = "x86_64-w64",
|
||||
)
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-mingw-amd64",
|
||||
all_files = ":empty",
|
||||
ar_files = ":empty",
|
||||
as_files = ":mingw_compiler_files",
|
||||
compiler_files = ":mingw_compiler_files",
|
||||
dwp_files = ":empty",
|
||||
linker_files = ":empty",
|
||||
objcopy_files = ":empty",
|
||||
strip_files = ":empty",
|
||||
supports_param_files = 0,
|
||||
toolchain_config = ":local-windows",
|
||||
)
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-clang-arm64",
|
||||
all_files = ":empty",
|
||||
compiler_files = ":empty",
|
||||
dwp_files = ":empty",
|
||||
linker_files = ":empty",
|
||||
objcopy_files = ":empty",
|
||||
strip_files = ":empty",
|
||||
supports_param_files = 1,
|
||||
toolchain_config = ":local-arm64",
|
||||
)
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-clang-osx",
|
||||
all_files = ":empty",
|
||||
compiler_files = ":empty",
|
||||
dwp_files = ":empty",
|
||||
linker_files = ":empty",
|
||||
objcopy_files = ":empty",
|
||||
strip_files = ":empty",
|
||||
supports_param_files = 1,
|
||||
toolchain_config = ":local-osxcross",
|
||||
)
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-clang-amd64",
|
||||
all_files = ":empty",
|
||||
compiler_files = ":empty",
|
||||
dwp_files = ":empty",
|
||||
linker_files = ":empty",
|
||||
objcopy_files = ":empty",
|
||||
strip_files = ":empty",
|
||||
supports_param_files = 1,
|
||||
toolchain_config = ":local-amd64",
|
||||
)
|
||||
|
||||
toolchain(
|
||||
name = "cc-toolchain-multiarch",
|
||||
exec_compatible_with = [
|
||||
"@platforms//os:linux",
|
||||
"@platforms//cpu:x86_64",
|
||||
],
|
||||
target_compatible_with = [],
|
||||
toolchain = select({
|
||||
":linux_arm64": ":cc-clang-arm64",
|
||||
":linux_amd64": ":cc-clang-amd64",
|
||||
":osx_amd64": ":cc-clang-osx",
|
||||
":windows_amd64": ":cc-mingw-amd64",
|
||||
}),
|
||||
toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
|
||||
)
|
@ -0,0 +1,2 @@
|
||||
# DO NOT EDIT: automatically generated WORKSPACE file for prysm_toolchains rule
|
||||
workspace(name = "prysm_toolchains")
|
@ -0,0 +1,305 @@
|
||||
load(
|
||||
"@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl",
|
||||
"action_config",
|
||||
"feature",
|
||||
"feature_set",
|
||||
"flag_group",
|
||||
"flag_set",
|
||||
"make_variable",
|
||||
"tool",
|
||||
"tool_path",
|
||||
"with_feature_set",
|
||||
)
|
||||
|
||||
load(
|
||||
"@bazel_tools//tools/cpp:cc_toolchain_config.bzl",
|
||||
ALL_COMPILE_ACTIONS = "all_compile_actions",
|
||||
ALL_CPP_COMPILE_ACTIONS = "all_cpp_compile_actions",
|
||||
ALL_LINK_ACTIONS = "all_link_actions",
|
||||
)
|
||||
|
||||
def _impl(ctx):
|
||||
toolchain_identifier = "clang-linux-cross"
|
||||
compiler = "clang"
|
||||
abi_version = "clang"
|
||||
abi_libc_version = "glibc_unknown"
|
||||
target_libc = "glibc_unknown"
|
||||
target_cpu = ctx.attr.target.split("-")[0]
|
||||
|
||||
if (target_cpu == "aarch64"):
|
||||
sysroot = "/usr/aarch64-linux-gnu"
|
||||
include_path_prefix = sysroot
|
||||
elif (target_cpu == "x86_64"):
|
||||
sysroot = "/"
|
||||
include_path_prefix = "/usr"
|
||||
else:
|
||||
fail("Unreachable")
|
||||
|
||||
if (target_cpu == "aarch64"):
|
||||
cross_system_include_dirs = [
|
||||
include_path_prefix + "/include/c++/v1",
|
||||
include_path_prefix + "/lib/clang/10.0.0/include",
|
||||
]
|
||||
else:
|
||||
cross_system_include_dirs = [
|
||||
include_path_prefix + "/include/c++/v1",
|
||||
include_path_prefix + "/lib/clang/10.0.0/include",
|
||||
include_path_prefix + "/include/x86_64-linux-gnu",
|
||||
]
|
||||
|
||||
cross_system_include_dirs += [
|
||||
include_path_prefix + "/include/",
|
||||
include_path_prefix + "/include/linux",
|
||||
include_path_prefix + "/include/asm",
|
||||
include_path_prefix + "/include/asm-generic",
|
||||
]
|
||||
|
||||
if (target_cpu == "aarch64"):
|
||||
cross_system_lib_dirs = [
|
||||
"/usr/" + ctx.attr.target + "/lib",
|
||||
]
|
||||
else:
|
||||
cross_system_lib_dirs = [
|
||||
"/usr/lib/x86_64-linux-gnu/",
|
||||
]
|
||||
|
||||
cross_system_lib_dirs += [
|
||||
"/usr/lib/gcc/x86_64-linux-gnu/8",
|
||||
]
|
||||
|
||||
opt_feature = feature(name = "opt")
|
||||
dbg_feature = feature(name = "dbg")
|
||||
fastbuild_feature = feature(name = "fastbuild")
|
||||
random_seed_feature = feature(name = "random_seed", enabled = True)
|
||||
supports_pic_feature = feature(name = "supports_pic", enabled = True)
|
||||
supports_dynamic_linker_feature = feature(name = "supports_dynamic_linker", enabled = True)
|
||||
|
||||
unfiltered_compile_flags_feature = feature(
|
||||
name = "unfiltered_compile_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
flags = [
|
||||
"-no-canonical-prefixes",
|
||||
"-Wno-builtin-macro-redefined",
|
||||
"-D__DATE__=\"redacted\"",
|
||||
"-D__TIMESTAMP__=\"redacted\"",
|
||||
"-D__TIME__=\"redacted\"",
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
# explicit arch specific system includes
|
||||
system_include_flags = []
|
||||
for d in cross_system_include_dirs:
|
||||
system_include_flags += ["-idirafter", d]
|
||||
|
||||
default_compile_flags_feature = feature(
|
||||
name = "default_compile_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
flags = [
|
||||
"--target=" + ctx.attr.target,
|
||||
"-nostdinc",
|
||||
"-U_FORTIFY_SOURCE",
|
||||
"-fstack-protector",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-fcolor-diagnostics",
|
||||
"-Wall",
|
||||
"-Wthread-safety",
|
||||
"-Wself-assign",
|
||||
] + system_include_flags,
|
||||
),
|
||||
],
|
||||
),
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [flag_group(flags = ["-g", "-fstandalone-debug"])],
|
||||
with_features = [with_feature_set(features = ["dbg"])],
|
||||
),
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
flags = [
|
||||
"-g0",
|
||||
"-O2",
|
||||
"-D_FORTIFY_SOURCE=1",
|
||||
"-DNDEBUG",
|
||||
"-ffunction-sections",
|
||||
"-fdata-sections",
|
||||
],
|
||||
),
|
||||
],
|
||||
with_features = [with_feature_set(features = ["opt"])],
|
||||
),
|
||||
flag_set(
|
||||
actions = ALL_CPP_COMPILE_ACTIONS,
|
||||
flag_groups = [flag_group(flags = ["-std=c++17", "-nostdinc++"])],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
additional_link_flags = [
|
||||
"-l:libc++.a",
|
||||
"-l:libc++abi.a",
|
||||
"-l:libunwind.a",
|
||||
"-lpthread",
|
||||
"-ldl",
|
||||
"-rtlib=compiler-rt",
|
||||
]
|
||||
|
||||
default_link_flags_feature = feature(
|
||||
name = "default_link_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_LINK_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
flags = additional_link_flags + [
|
||||
"--target=" + ctx.attr.target,
|
||||
"-lm",
|
||||
"-no-canonical-prefixes",
|
||||
"-fuse-ld=lld",
|
||||
"-Wl,--build-id=md5",
|
||||
"-Wl,--hash-style=gnu",
|
||||
"-Wl,-z,relro,-z,now",
|
||||
] + ["-L" + d for d in cross_system_lib_dirs],
|
||||
),
|
||||
],
|
||||
),
|
||||
flag_set(
|
||||
actions = ALL_LINK_ACTIONS,
|
||||
flag_groups = [flag_group(flags = ["-Wl,--gc-sections"])],
|
||||
with_features = [with_feature_set(features = ["opt"])],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
objcopy_embed_flags_feature = feature(
|
||||
name = "objcopy_embed_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ["objcopy_embed_data"],
|
||||
flag_groups = [flag_group(flags = ["-I", "binary"])],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
user_compile_flags_feature = feature(
|
||||
name = "user_compile_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
expand_if_available = "user_compile_flags",
|
||||
flags = ["%{user_compile_flags}"],
|
||||
iterate_over = "user_compile_flags",
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
sysroot_feature = feature(
|
||||
name = "sysroot",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS + ALL_LINK_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
expand_if_available = "sysroot",
|
||||
flags = ["--sysroot=%{sysroot}"],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
coverage_feature = feature(
|
||||
name = "coverage",
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
flags = ["-fprofile-instr-generate", "-fcoverage-mapping"],
|
||||
),
|
||||
],
|
||||
),
|
||||
flag_set(
|
||||
actions = ALL_LINK_ACTIONS,
|
||||
flag_groups = [flag_group(flags = ["-fprofile-instr-generate"])],
|
||||
),
|
||||
],
|
||||
provides = ["profile"],
|
||||
)
|
||||
|
||||
features = [
|
||||
opt_feature,
|
||||
fastbuild_feature,
|
||||
dbg_feature,
|
||||
random_seed_feature,
|
||||
supports_pic_feature,
|
||||
supports_dynamic_linker_feature,
|
||||
unfiltered_compile_flags_feature,
|
||||
default_link_flags_feature,
|
||||
default_compile_flags_feature,
|
||||
objcopy_embed_flags_feature,
|
||||
user_compile_flags_feature,
|
||||
sysroot_feature,
|
||||
coverage_feature,
|
||||
]
|
||||
|
||||
tool_paths = [
|
||||
tool_path(name = "ld", path = "/usr/bin/ld.lld"),
|
||||
tool_path(name = "cpp", path = "/usr/bin/clang-cpp"),
|
||||
tool_path(name = "dwp", path = "/usr/bin/llvm-dwp"),
|
||||
tool_path(name = "gcov", path = "/usr/bin/llvm-profdata"),
|
||||
tool_path(name = "nm", path = "/usr/bin/llvm-nm"),
|
||||
tool_path(name = "objcopy", path = "/usr/bin/llvm-objcopy"),
|
||||
tool_path(name = "objdump", path = "/usr/bin/llvm-objdump"),
|
||||
tool_path(name = "strip", path = "/usr/bin/strip"),
|
||||
tool_path(name = "gcc", path = "/usr/bin/clang"),
|
||||
tool_path(name = "ar", path = "/usr/bin/llvm-ar"),
|
||||
]
|
||||
|
||||
return cc_common.create_cc_toolchain_config_info(
|
||||
ctx = ctx,
|
||||
features = features,
|
||||
abi_version = abi_version,
|
||||
abi_libc_version = abi_libc_version,
|
||||
builtin_sysroot = sysroot,
|
||||
compiler = compiler,
|
||||
cxx_builtin_include_directories = cross_system_include_dirs,
|
||||
host_system_name = "x86_64-unknown-linux-gnu",
|
||||
target_cpu = target_cpu,
|
||||
target_libc = target_libc,
|
||||
target_system_name = ctx.attr.target,
|
||||
tool_paths = tool_paths,
|
||||
toolchain_identifier = toolchain_identifier,
|
||||
)
|
||||
|
||||
arm64_cc_toolchain_config = rule(
|
||||
implementation = _impl,
|
||||
attrs = {
|
||||
"target": attr.string(mandatory = True),
|
||||
"stdlib": attr.string(),
|
||||
},
|
||||
provides = [CcToolchainConfigInfo],
|
||||
)
|
@ -0,0 +1,245 @@
|
||||
load(
|
||||
"@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl",
|
||||
"action_config",
|
||||
"feature",
|
||||
"feature_set",
|
||||
"flag_group",
|
||||
"flag_set",
|
||||
"make_variable",
|
||||
"tool",
|
||||
"tool_path",
|
||||
"with_feature_set",
|
||||
)
|
||||
|
||||
load(
|
||||
"@bazel_tools//tools/cpp:cc_toolchain_config.bzl",
|
||||
ALL_COMPILE_ACTIONS = "all_compile_actions",
|
||||
ALL_CPP_COMPILE_ACTIONS = "all_cpp_compile_actions",
|
||||
ALL_LINK_ACTIONS = "all_link_actions",
|
||||
)
|
||||
|
||||
def _impl(ctx):
|
||||
toolchain_identifier = "osxcross"
|
||||
compiler = "clang"
|
||||
abi_version = "darwin_x86_64"
|
||||
abi_libc_version = "darwin_x86_64"
|
||||
install = "/usr/x86_64-apple-darwin/"
|
||||
clang_version = "10.0.0"
|
||||
target_libc = "macosx"
|
||||
target_cpu = "x86_64"
|
||||
osxcross = install + "osxcross/"
|
||||
osxcross_binprefix = osxcross + "bin/x86_64-apple-darwin19-"
|
||||
sdkroot = osxcross + "SDK/MacOSX10.15.sdk/"
|
||||
cross_system_include_dirs = [
|
||||
"/usr/lib/clang/10.0.0/include",
|
||||
osxcross + "include",
|
||||
sdkroot + "usr/include",
|
||||
]
|
||||
|
||||
opt_feature = feature(name = "opt")
|
||||
dbg_feature = feature(name = "dbg")
|
||||
fastbuild_feature = feature(name = "fastbuild")
|
||||
random_seed_feature = feature(name = "random_seed", enabled = True)
|
||||
supports_pic_feature = feature(name = "supports_pic", enabled = True)
|
||||
supports_dynamic_linker_feature = feature(name = "supports_dynamic_linker", enabled = True)
|
||||
|
||||
unfiltered_compile_flags_feature = feature(
|
||||
name = "unfiltered_compile_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
flags = [
|
||||
"-stdlib=libc++",
|
||||
"-no-canonical-prefixes",
|
||||
"-Wno-builtin-macro-redefined",
|
||||
"-D__DATE__=\"redacted\"",
|
||||
"-D__TIMESTAMP__=\"redacted\"",
|
||||
"-D__TIME__=\"redacted\"",
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
# explicit arch specific system includes
|
||||
system_include_flags = []
|
||||
for d in cross_system_include_dirs:
|
||||
system_include_flags += ["-idirafter", d]
|
||||
|
||||
default_compile_flags_feature = feature(
|
||||
name = "default_compile_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
flags = [
|
||||
"-mlinker-version=400",
|
||||
"-B " + osxcross + "bin",
|
||||
"-nostdinc",
|
||||
"-U_FORTIFY_SOURCE",
|
||||
"-fstack-protector",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-fcolor-diagnostics",
|
||||
"-Wall",
|
||||
"-Wthread-safety",
|
||||
"-Wself-assign",
|
||||
] + system_include_flags,
|
||||
),
|
||||
],
|
||||
),
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [flag_group(flags = ["-g", "-fstandalone-debug"])],
|
||||
with_features = [with_feature_set(features = ["dbg"])],
|
||||
),
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
flags = [
|
||||
"-g0",
|
||||
"-O2",
|
||||
"-D_FORTIFY_SOURCE=1",
|
||||
"-DNDEBUG",
|
||||
"-ffunction-sections",
|
||||
"-fdata-sections",
|
||||
],
|
||||
),
|
||||
],
|
||||
with_features = [with_feature_set(features = ["opt"])],
|
||||
),
|
||||
flag_set(
|
||||
actions = ALL_CPP_COMPILE_ACTIONS,
|
||||
flag_groups = [flag_group(flags = ["-std=c++17", "-nostdinc++"])],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
default_link_flags_feature = feature(
|
||||
name = "default_link_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_LINK_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
flags = [
|
||||
"-v",
|
||||
"-lm",
|
||||
"-no-canonical-prefixes",
|
||||
"-lc++",
|
||||
"-lc++abi",
|
||||
"-F" + sdkroot + "System/Library/Frameworks/",
|
||||
"-L"+ sdkroot + "usr/lib",
|
||||
"-undefined",
|
||||
"dynamic_lookup",
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
objcopy_embed_flags_feature = feature(
|
||||
name = "objcopy_embed_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ["objcopy_embed_data"],
|
||||
flag_groups = [flag_group(flags = ["-I", "binary"])],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
user_compile_flags_feature = feature(
|
||||
name = "user_compile_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
expand_if_available = "user_compile_flags",
|
||||
flags = ["%{user_compile_flags}"],
|
||||
iterate_over = "user_compile_flags",
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
coverage_feature = feature(
|
||||
name = "coverage",
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_COMPILE_ACTIONS,
|
||||
flag_groups = [
|
||||
flag_group(
|
||||
flags = ["-fprofile-instr-generate", "-fcoverage-mapping"],
|
||||
),
|
||||
],
|
||||
),
|
||||
flag_set(
|
||||
actions = ALL_LINK_ACTIONS,
|
||||
flag_groups = [flag_group(flags = ["-fprofile-instr-generate"])],
|
||||
),
|
||||
],
|
||||
provides = ["profile"],
|
||||
)
|
||||
|
||||
features = [
|
||||
opt_feature,
|
||||
fastbuild_feature,
|
||||
dbg_feature,
|
||||
random_seed_feature,
|
||||
supports_pic_feature,
|
||||
supports_dynamic_linker_feature,
|
||||
unfiltered_compile_flags_feature,
|
||||
default_link_flags_feature,
|
||||
default_compile_flags_feature,
|
||||
objcopy_embed_flags_feature,
|
||||
user_compile_flags_feature,
|
||||
coverage_feature,
|
||||
]
|
||||
|
||||
tool_paths = [
|
||||
tool_path(name = "ld", path = osxcross_binprefix + "ld"),
|
||||
tool_path(name = "cpp", path = osxcross + "bin/o64-clang++"),
|
||||
tool_path(name = "dwp", path = "/usr/bin/dwp"),
|
||||
tool_path(name = "gcov", path = "/usr/bin/gcov"),
|
||||
tool_path(name = "nm", path = osxcross_binprefix + "nm"),
|
||||
tool_path(name = "objdump", path = osxcross_binprefix + "ObjectDump"),
|
||||
tool_path(name = "strip", path = osxcross_binprefix + "strip"),
|
||||
tool_path(name = "gcc", path = osxcross + "bin/o64-clang"),
|
||||
tool_path(name = "ar", path = osxcross_binprefix + "libtool"),
|
||||
]
|
||||
|
||||
return cc_common.create_cc_toolchain_config_info(
|
||||
ctx = ctx,
|
||||
features = features,
|
||||
abi_version = abi_version,
|
||||
abi_libc_version = abi_libc_version,
|
||||
compiler = compiler,
|
||||
cxx_builtin_include_directories = cross_system_include_dirs,
|
||||
host_system_name = "x86_64-unknown-linux-gnu",
|
||||
target_cpu = target_cpu,
|
||||
target_libc = target_libc,
|
||||
target_system_name = ctx.attr.target,
|
||||
tool_paths = tool_paths,
|
||||
toolchain_identifier = toolchain_identifier,
|
||||
)
|
||||
|
||||
osx_cc_toolchain_config = rule(
|
||||
implementation = _impl,
|
||||
attrs = {
|
||||
"target": attr.string(mandatory = True),
|
||||
"stdlib": attr.string(),
|
||||
},
|
||||
provides = [CcToolchainConfigInfo],
|
||||
)
|
@ -0,0 +1,213 @@
|
||||
load(
|
||||
"@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl",
|
||||
"action_config",
|
||||
"feature",
|
||||
"feature_set",
|
||||
"flag_group",
|
||||
"flag_set",
|
||||
"make_variable",
|
||||
"tool",
|
||||
"tool_path",
|
||||
"with_feature_set",
|
||||
"artifact_name_pattern",
|
||||
"env_set",
|
||||
"env_entry",
|
||||
)
|
||||
|
||||
load(
|
||||
"@bazel_tools//tools/cpp:cc_toolchain_config.bzl",
|
||||
ALL_COMPILE_ACTIONS = "all_compile_actions",
|
||||
ALL_CPP_COMPILE_ACTIONS = "all_cpp_compile_actions",
|
||||
ALL_LINK_ACTIONS = "all_link_actions",
|
||||
)
|
||||
|
||||
load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "ACTION_NAMES")
|
||||
|
||||
def _impl(ctx):
|
||||
toolchain_identifier = "msys_x64_mingw"
|
||||
host_system_name = "local"
|
||||
target_system_name = "local"
|
||||
target_cpu = "x64_windows"
|
||||
target_libc = "mingw"
|
||||
compiler = "mingw-gcc"
|
||||
abi_version = "local"
|
||||
abi_libc_version = "local"
|
||||
cc_target_os = None
|
||||
builtin_sysroot = None
|
||||
action_configs = []
|
||||
|
||||
install = "/usr/x86_64-w64-mingw32/"
|
||||
bin_prefix = "/usr/bin/x86_64-w64-mingw32-"
|
||||
|
||||
|
||||
targets_windows_feature = feature(
|
||||
name = "targets_windows",
|
||||
implies = ["copy_dynamic_libraries_to_binary"],
|
||||
enabled = True,
|
||||
)
|
||||
|
||||
copy_dynamic_libraries_to_binary_feature = feature(name = "copy_dynamic_libraries_to_binary")
|
||||
|
||||
gcc_env_feature = feature(
|
||||
name = "gcc_env",
|
||||
enabled = True,
|
||||
env_sets = [
|
||||
env_set(
|
||||
actions = [
|
||||
ACTION_NAMES.c_compile,
|
||||
ACTION_NAMES.cpp_compile,
|
||||
ACTION_NAMES.cpp_module_compile,
|
||||
ACTION_NAMES.cpp_module_codegen,
|
||||
ACTION_NAMES.cpp_header_parsing,
|
||||
ACTION_NAMES.assemble,
|
||||
ACTION_NAMES.preprocess_assemble,
|
||||
ACTION_NAMES.cpp_link_executable,
|
||||
ACTION_NAMES.cpp_link_dynamic_library,
|
||||
ACTION_NAMES.cpp_link_nodeps_dynamic_library,
|
||||
ACTION_NAMES.cpp_link_static_library,
|
||||
],
|
||||
env_entries = [
|
||||
env_entry(key = "PATH", value = "NOT_USED"),
|
||||
],
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
msys_mingw_flags = [
|
||||
"-B " + install + "bin",
|
||||
"-nostdinc",
|
||||
"-U_FORTIFY_SOURCE",
|
||||
"-fstack-protector",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-fcolor-diagnostics",
|
||||
"-Wall",
|
||||
"-Wthread-safety",
|
||||
"-Wself-assign",
|
||||
"-x c++",
|
||||
"-lstdc++",
|
||||
"-lpthread"
|
||||
]
|
||||
|
||||
msys_mingw_link_flags = [
|
||||
"-l:libstdc++.a",
|
||||
"-L" + install + "lib",
|
||||
"-L/usr/lib/gcc/x86_64-w64-mingw32/8.3-w32",
|
||||
"-v",
|
||||
"-lm",
|
||||
"-no-canonical-prefixes",
|
||||
]
|
||||
|
||||
default_compile_flags_feature = feature(
|
||||
name = "default_compile_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = [
|
||||
ACTION_NAMES.assemble,
|
||||
ACTION_NAMES.preprocess_assemble,
|
||||
ACTION_NAMES.linkstamp_compile,
|
||||
ACTION_NAMES.c_compile,
|
||||
ACTION_NAMES.cpp_compile,
|
||||
ACTION_NAMES.cpp_header_parsing,
|
||||
ACTION_NAMES.cpp_module_compile,
|
||||
ACTION_NAMES.cpp_module_codegen,
|
||||
ACTION_NAMES.lto_backend,
|
||||
ACTION_NAMES.clif_match,
|
||||
],
|
||||
),
|
||||
flag_set(
|
||||
actions = [
|
||||
ACTION_NAMES.linkstamp_compile,
|
||||
ACTION_NAMES.cpp_compile,
|
||||
ACTION_NAMES.cpp_header_parsing,
|
||||
ACTION_NAMES.cpp_module_compile,
|
||||
ACTION_NAMES.cpp_module_codegen,
|
||||
ACTION_NAMES.lto_backend,
|
||||
ACTION_NAMES.clif_match,
|
||||
],
|
||||
flag_groups = ([flag_group(flags = msys_mingw_flags)] if msys_mingw_flags else []),
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
compiler_param_file_feature = feature(
|
||||
name = "compiler_param_file",
|
||||
)
|
||||
|
||||
default_link_flags_feature = feature(
|
||||
name = "default_link_flags",
|
||||
enabled = True,
|
||||
flag_sets = [
|
||||
flag_set(
|
||||
actions = ALL_LINK_ACTIONS,
|
||||
flag_groups = ([flag_group(flags = msys_mingw_link_flags)] if msys_mingw_link_flags else []),
|
||||
),
|
||||
],
|
||||
)
|
||||
|
||||
supports_dynamic_linker_feature = feature(name = "supports_dynamic_linker", enabled = True)
|
||||
|
||||
features = [
|
||||
targets_windows_feature,
|
||||
copy_dynamic_libraries_to_binary_feature,
|
||||
gcc_env_feature,
|
||||
default_compile_flags_feature,
|
||||
compiler_param_file_feature,
|
||||
default_link_flags_feature,
|
||||
supports_dynamic_linker_feature,
|
||||
]
|
||||
|
||||
cxx_builtin_include_directories = [
|
||||
install +"include"
|
||||
]
|
||||
|
||||
artifact_name_patterns = [
|
||||
artifact_name_pattern(
|
||||
category_name = "executable",
|
||||
prefix = "",
|
||||
extension = ".exe",
|
||||
),
|
||||
]
|
||||
|
||||
make_variables = []
|
||||
tool_paths = [
|
||||
tool_path(name = "ld", path = bin_prefix + "ld"),
|
||||
tool_path(name = "cpp", path = bin_prefix + "cpp"),
|
||||
tool_path(name = "gcov", path = "/usr/bin/gcov"),
|
||||
tool_path(name = "nm", path = bin_prefix + "nm"),
|
||||
tool_path(name = "objcopy", path = bin_prefix + "objcopy"),
|
||||
tool_path(name = "objdump", path = bin_prefix + "objdump"),
|
||||
tool_path(name = "strip", path = bin_prefix + "strip"),
|
||||
tool_path(name = "gcc", path = bin_prefix + "gcc"),
|
||||
tool_path(name = "ar", path = bin_prefix + "ar"),
|
||||
]
|
||||
|
||||
return cc_common.create_cc_toolchain_config_info(
|
||||
ctx = ctx,
|
||||
features = features,
|
||||
action_configs = action_configs,
|
||||
artifact_name_patterns = artifact_name_patterns,
|
||||
cxx_builtin_include_directories = cxx_builtin_include_directories,
|
||||
toolchain_identifier = toolchain_identifier,
|
||||
host_system_name = host_system_name,
|
||||
target_system_name = target_system_name,
|
||||
target_cpu = target_cpu,
|
||||
target_libc = target_libc,
|
||||
compiler = compiler,
|
||||
abi_version = abi_version,
|
||||
abi_libc_version = abi_libc_version,
|
||||
tool_paths = tool_paths,
|
||||
make_variables = make_variables,
|
||||
builtin_sysroot = builtin_sysroot,
|
||||
cc_target_os = cc_target_os,
|
||||
)
|
||||
|
||||
windows_cc_toolchain_config = rule(
|
||||
implementation = _impl,
|
||||
attrs = {
|
||||
"target": attr.string(mandatory = True),
|
||||
"stdlib": attr.string(),
|
||||
},
|
||||
provides = [CcToolchainConfigInfo],
|
||||
)
|
||||
|
@ -59,8 +59,6 @@ cc_toolchain_suite(
|
||||
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-k8",
|
||||
toolchain_identifier = "local",
|
||||
toolchain_config = ":local",
|
||||
all_files = ":compiler_deps",
|
||||
ar_files = ":compiler_deps",
|
||||
as_files = ":compiler_deps",
|
||||
@ -70,18 +68,26 @@ cc_toolchain(
|
||||
objcopy_files = ":empty",
|
||||
strip_files = ":empty",
|
||||
supports_param_files = 1,
|
||||
toolchain_config = ":local",
|
||||
toolchain_identifier = "local",
|
||||
)
|
||||
|
||||
cc_toolchain_config(
|
||||
name = "local",
|
||||
cpu = "k8",
|
||||
compiler = "gcc",
|
||||
toolchain_identifier = "local",
|
||||
host_system_name = "local",
|
||||
target_system_name = "local",
|
||||
target_libc = "local",
|
||||
abi_version = "local",
|
||||
abi_libc_version = "local",
|
||||
abi_version = "local",
|
||||
compile_flags = [
|
||||
"-U_FORTIFY_SOURCE",
|
||||
"-fstack-protector",
|
||||
"-Wall",
|
||||
"-Wunused-but-set-parameter",
|
||||
"-Wno-free-nonheap-object",
|
||||
"-fno-omit-frame-pointer",
|
||||
],
|
||||
compiler = "gcc",
|
||||
coverage_compile_flags = ["--coverage"],
|
||||
coverage_link_flags = ["--coverage"],
|
||||
cpu = "k8",
|
||||
cxx_builtin_include_directories = [
|
||||
"/usr/lib/gcc/x86_64-linux-gnu/8/include",
|
||||
"/usr/local/include",
|
||||
@ -92,6 +98,31 @@ cc_toolchain_config(
|
||||
"/usr/include/x86_64-linux-gnu/c++/8",
|
||||
"/usr/include/c++/8/backward",
|
||||
],
|
||||
cxx_flags = ["-std=c++0x"],
|
||||
dbg_compile_flags = ["-g"],
|
||||
host_system_name = "local",
|
||||
link_flags = [
|
||||
"-fuse-ld=gold",
|
||||
"-Wl,-no-as-needed",
|
||||
"-Wl,-z,relro,-z,now",
|
||||
"-B/usr/bin",
|
||||
"-pass-exit-codes",
|
||||
"-lm",
|
||||
"-static-libgcc",
|
||||
],
|
||||
link_libs = ["-l:libstdc++.a"],
|
||||
opt_compile_flags = [
|
||||
"-g0",
|
||||
"-O2",
|
||||
"-D_FORTIFY_SOURCE=1",
|
||||
"-DNDEBUG",
|
||||
"-ffunction-sections",
|
||||
"-fdata-sections",
|
||||
],
|
||||
opt_link_flags = ["-Wl,--gc-sections"],
|
||||
supports_start_end_lib = True,
|
||||
target_libc = "local",
|
||||
target_system_name = "local",
|
||||
tool_paths = {
|
||||
"ar": "/usr/bin/ar",
|
||||
"ld": "/usr/bin/ld",
|
||||
@ -104,35 +135,7 @@ cc_toolchain_config(
|
||||
"objdump": "/usr/bin/objdump",
|
||||
"strip": "/usr/bin/strip",
|
||||
},
|
||||
compile_flags = [
|
||||
"-U_FORTIFY_SOURCE",
|
||||
"-fstack-protector",
|
||||
"-Wall",
|
||||
"-Wunused-but-set-parameter",
|
||||
"-Wno-free-nonheap-object",
|
||||
"-fno-omit-frame-pointer",
|
||||
],
|
||||
opt_compile_flags = [
|
||||
"-g0",
|
||||
"-O2",
|
||||
"-D_FORTIFY_SOURCE=1",
|
||||
"-DNDEBUG",
|
||||
"-ffunction-sections",
|
||||
"-fdata-sections",
|
||||
],
|
||||
dbg_compile_flags = ["-g"],
|
||||
cxx_flags = ["-std=c++0x"],
|
||||
link_flags = [
|
||||
"-fuse-ld=gold",
|
||||
"-Wl,-no-as-needed",
|
||||
"-Wl,-z,relro,-z,now",
|
||||
"-B/usr/bin",
|
||||
"-pass-exit-codes",
|
||||
"-lm",
|
||||
"-static-libgcc",
|
||||
],
|
||||
link_libs = ["-l:libstdc++.a"],
|
||||
opt_link_flags = ["-Wl,--gc-sections"],
|
||||
toolchain_identifier = "local",
|
||||
unfiltered_compile_flags = [
|
||||
"-fno-canonical-system-headers",
|
||||
"-Wno-builtin-macro-redefined",
|
||||
@ -140,16 +143,11 @@ cc_toolchain_config(
|
||||
"-D__TIMESTAMP__=\"redacted\"",
|
||||
"-D__TIME__=\"redacted\"",
|
||||
],
|
||||
coverage_compile_flags = ["--coverage"],
|
||||
coverage_link_flags = ["--coverage"],
|
||||
supports_start_end_lib = True,
|
||||
)
|
||||
|
||||
# Android tooling requires a default toolchain for the armeabi-v7a cpu.
|
||||
cc_toolchain(
|
||||
name = "cc-compiler-armeabi-v7a",
|
||||
toolchain_identifier = "stub_armeabi-v7a",
|
||||
toolchain_config = ":stub_armeabi-v7a",
|
||||
all_files = ":empty",
|
||||
ar_files = ":empty",
|
||||
as_files = ":empty",
|
||||
@ -159,6 +157,8 @@ cc_toolchain(
|
||||
objcopy_files = ":empty",
|
||||
strip_files = ":empty",
|
||||
supports_param_files = 1,
|
||||
toolchain_config = ":stub_armeabi-v7a",
|
||||
toolchain_identifier = "stub_armeabi-v7a",
|
||||
)
|
||||
|
||||
armeabi_cc_toolchain_config(name = "stub_armeabi-v7a")
|
||||
|
@ -41,7 +41,7 @@ platform(
|
||||
"@bazel_tools//tools/cpp:gcc",
|
||||
],
|
||||
exec_properties = {
|
||||
"container-image": "docker://gcr.io/prysmaticlabs/rbe-worker@sha256:fdd160ed95406580948fb93c2618ca12fbd3fa93afabb84bf4bfbb2e6bdd7dbd",
|
||||
"container-image": "docker://gcr.io/prysmaticlabs/rbe-worker@sha256:0175024b0968eee56a50d4d813c4b2fc68dca90e7ecc453cdae6e82e112b845d",
|
||||
"OSFamily": "Linux",
|
||||
},
|
||||
)
|
||||
|
@ -1,12 +1,11 @@
|
||||
# Generated file, do not modify by hand
|
||||
# Generated by 'rbe_ubuntu_gcc_gen' rbe_autoconfig rule
|
||||
# Generated by 'rbe_ubuntu_clang_gen' rbe_autoconfig rule
|
||||
"""Definitions to be used in rbe_repo attr of an rbe_autoconf rule """
|
||||
toolchain_config_spec0 = struct(config_repos = ["prysm_toolchains"], create_cc_configs = True, create_java_configs = True, env = {"BAZEL_COMPILER": "clang", "BAZEL_LINKLIBS": "-l%:libstdc++.a", "BAZEL_LINKOPTS": "-lm:-static-libgcc", "BAZEL_USE_LLVM_NATIVE_COVERAGE": "1", "GCOV": "llvm-profdata", "CC": "clang", "CXX": "clang++"}, java_home = "/usr/lib/jvm/java-8-openjdk-amd64", name = "clang")
|
||||
toolchain_config_spec1 = struct(config_repos = ["prysm_toolchains"], create_cc_configs = True, create_java_configs = True, env = {"BAZEL_COMPILER": "gcc", "BAZEL_LINKLIBS": "-l%:libstdc++.a", "BAZEL_LINKOPTS": "-lm:-static-libgcc", "CC": "gcc", "CXX": "g++"}, java_home = "/usr/lib/jvm/java-8-openjdk-amd64", name = "gcc")
|
||||
_TOOLCHAIN_CONFIG_SPECS = [toolchain_config_spec0,toolchain_config_spec1]
|
||||
_BAZEL_TO_CONFIG_SPEC_NAMES = {"3.2.0": ["clang", "gcc"]}
|
||||
LATEST = "sha256:fdd160ed95406580948fb93c2618ca12fbd3fa93afabb84bf4bfbb2e6bdd7dbd"
|
||||
CONTAINER_TO_CONFIG_SPEC_NAMES = {"sha256:fdd160ed95406580948fb93c2618ca12fbd3fa93afabb84bf4bfbb2e6bdd7dbd": ["clang", "gcc"]}
|
||||
_TOOLCHAIN_CONFIG_SPECS = [toolchain_config_spec0]
|
||||
_BAZEL_TO_CONFIG_SPEC_NAMES = {"3.7.0": ["clang"]}
|
||||
LATEST = "sha256:d5fa14154811dff0886e4c808dc15f18c4bb8545a1ef3c53805a0db13564bdad"
|
||||
CONTAINER_TO_CONFIG_SPEC_NAMES = {"sha256:d5fa14154811dff0886e4c808dc15f18c4bb8545a1ef3c53805a0db13564bdad": ["clang"]}
|
||||
_DEFAULT_TOOLCHAIN_CONFIG_SPEC = toolchain_config_spec0
|
||||
TOOLCHAIN_CONFIG_AUTOGEN_SPEC = struct(
|
||||
bazel_to_config_spec_names_map = _BAZEL_TO_CONFIG_SPEC_NAMES,
|
||||
|
@ -3,9 +3,9 @@
|
||||
set -eu
|
||||
|
||||
OSXCROSS_REPO=tpoechtrager/osxcross
|
||||
OSXCROSS_SHA1=bee9df6
|
||||
OSX_SDK=MacOSX10.10.sdk
|
||||
OSX_SDK_SUM=631b4144c6bf75bf7a4d480d685a9b5bda10ee8d03dbf0db829391e2ef858789
|
||||
OSXCROSS_SHA1=2733413b6847c1489d6230f062d3293e6f42a021
|
||||
OSX_SDK=MacOSX10.15.sdk
|
||||
OSX_SDK_SUM=f1703b980d479b367d5bddd299fcad7e0ade2fe5019e571359f52ef2c58872a9
|
||||
|
||||
# darwin
|
||||
mkdir -p /usr/x86_64-apple-darwin/osxcross
|
||||
@ -13,18 +13,19 @@ mkdir -p /tmp/osxcross && cd "/tmp/osxcross"
|
||||
curl -sLo osxcross.tar.gz "https://codeload.github.com/${OSXCROSS_REPO}/tar.gz/${OSXCROSS_SHA1}"
|
||||
tar --strip=1 -xzf osxcross.tar.gz
|
||||
rm -f osxcross.tar.gz
|
||||
curl -sLo tarballs/${OSX_SDK}.tar.xz "https://s3.dockerproject.org/darwin/v2/${OSX_SDK}.tar.xz"
|
||||
curl -sLo tarballs/${OSX_SDK}.tar.xz "https://prysmaticlabs.com/uploads/${OSX_SDK}.tar.xz"
|
||||
echo "${OSX_SDK_SUM}" "tarballs/${OSX_SDK}.tar.xz" | sha256sum -c -
|
||||
yes "" | SDK_VERSION=10.10 OSX_VERSION_MIN=10.10 OCDEBUG=1 ./build.sh
|
||||
yes "" | SDK_VERSION=10.15 OSX_VERSION_MIN=10.12 OCDEBUG=1 ./build.sh
|
||||
mv target/* /usr/x86_64-apple-darwin/osxcross/
|
||||
mv tools /usr/x86_64-apple-darwin/osxcross/
|
||||
cd /usr/x86_64-apple-darwin/osxcross/include
|
||||
ln -s ../SDK/MacOSX10.10.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ CarbonCore
|
||||
ln -s ../SDK/MacOSX10.10.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/ CoreFoundation
|
||||
ln -s ../SDK/MacOSX10.10.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/ Frameworks
|
||||
ln -s ../SDK/MacOSX10.10.sdk/System/Library/Frameworks/Security.framework/Versions/A/Headers/ Security
|
||||
ln -s ../SDK/${OSX_SDK}/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ CarbonCore
|
||||
ln -s ../SDK/${OSX_SDK}/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/ CoreFoundation
|
||||
ln -s ../SDK/${OSX_SDK}/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/ Frameworks
|
||||
ln -s ../SDK/${OSX_SDK}/System/Library/Frameworks/Security.framework/Versions/A/Headers/ Security
|
||||
rm -rf /tmp/osxcross
|
||||
rm -rf "/usr/x86_64-apple-darwin/osxcross/SDK/MacOSX10.10.sdk/usr/share/man"
|
||||
rm -rf "/usr/x86_64-apple-darwin/osxcross/SDK/${OSX_SDK}/usr/share/man"
|
||||
# symlink ld64.lld
|
||||
ln -s /usr/x86_64-apple-darwin/osxcross/bin/x86_64-apple-darwin14-ld /usr/x86_64-apple-darwin/osxcross/bin/ld64.lld
|
||||
ln -s /usr/x86_64-apple-darwin/osxcross/bin/x86_64-apple-darwin19-ld /usr/x86_64-apple-darwin/osxcross/bin/ld64.lld
|
||||
ln -s /usr/x86_64-apple-darwin/osxcross/lib/libxar.so.1 /usr/lib
|
||||
ln -s /usr/x86_64-apple-darwin/osxcross/lib/libtapi.so* /usr/lib
|
||||
|
@ -3,7 +3,7 @@ load("@prysm//tools/cross-toolchain:configs/versions.bzl", _generated_toolchain_
|
||||
|
||||
_PRYSM_BUILD_IMAGE_REGISTRY = "gcr.io"
|
||||
_PRYSM_BUILD_IMAGE_REPOSITORY = "prysmaticlabs/rbe-worker"
|
||||
_PRYSM_BUILD_IMAGE_DIGEST = "sha256:fdd160ed95406580948fb93c2618ca12fbd3fa93afabb84bf4bfbb2e6bdd7dbd"
|
||||
_PRYSM_BUILD_IMAGE_DIGEST = "sha256:d5fa14154811dff0886e4c808dc15f18c4bb8545a1ef3c53805a0db13564bdad"
|
||||
_PRYSM_BUILD_IMAGE_JAVA_HOME = "/usr/lib/jvm/java-8-openjdk-amd64"
|
||||
_CONFIGS_OUTPUT_BASE = "tools/cross-toolchain/configs"
|
||||
|
||||
|
@ -9,4 +9,3 @@ cp -vf "${RBE_AUTOCONF_ROOT}/tools/cross-toolchain/empty.bzl" "${RBE_AUTOCONF_RO
|
||||
|
||||
# Bazel query is the right command so bazel won't fail itself.
|
||||
bazel query "@rbe_ubuntu_clang_gen//..."
|
||||
bazel query "@rbe_ubuntu_gcc_gen//..."
|
@ -27,24 +27,10 @@ go_binary(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = ["main.go"],
|
||||
base = "//tools:go_image",
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/tools/enr-calculator",
|
||||
pure = "on",
|
||||
race = "off",
|
||||
binary = "enr-calculator",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"@com_github_btcsuite_btcd//btcec:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//p2p/enode:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//p2p/enr:go_default_library",
|
||||
"@com_github_libp2p_go_libp2p_core//crypto:go_default_library",
|
||||
"@com_github_sirupsen_logrus//:go_default_library",
|
||||
"//shared/fileutil:go_default_library",
|
||||
"//shared/maxprocs:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
container_bundle(
|
||||
|
@ -26,22 +26,10 @@ go_binary(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = ["main.go"],
|
||||
base = "//tools:go_image",
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/tools/eth1exporter",
|
||||
race = "off",
|
||||
static = "off",
|
||||
binary = ":eth1exporter",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"@com_github_ethereum_go_ethereum//common:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//ethclient:go_default_library",
|
||||
"@com_github_ethereum_go_ethereum//params:go_default_library",
|
||||
"@com_github_sirupsen_logrus//:go_default_library",
|
||||
"//shared/maxprocs:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
container_bundle(
|
||||
|
@ -43,16 +43,9 @@ go_binary(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = SRCS,
|
||||
base = "//tools:go_image",
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = IMPORT_PATH,
|
||||
pure = "off", # depends on cgo for go-ethereum crypto
|
||||
race = "off",
|
||||
static = "off", # go-ethereum is bad about static
|
||||
binary = ":faucet",
|
||||
tags = ["manual"],
|
||||
deps = DEPS,
|
||||
)
|
||||
|
||||
container_bundle(
|
||||
|
@ -27,28 +27,14 @@ go_binary(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = ["main.go"],
|
||||
base = select({
|
||||
"//tools:base_image_alpine": "//tools:alpine_cc_image",
|
||||
"//tools:base_image_cc": "//tools:cc_image",
|
||||
"//conditions:default": "//tools:cc_image",
|
||||
}),
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/tools/genesis-state-gen",
|
||||
pure = "off",
|
||||
static = "off", # Static enabled binary seems to cause issues with DNS lookup with cgo.
|
||||
race = "off",
|
||||
binary = ":genesis-state-gen",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//proto/beacon/p2p/v1:go_default_library",
|
||||
"//shared/fileutil:go_default_library",
|
||||
"//shared/interop:go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"@com_github_ghodss_yaml//:go_default_library",
|
||||
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
container_bundle(
|
||||
|
@ -26,28 +26,10 @@ go_library(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = ["main.go"],
|
||||
base = "//tools:cc_image",
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/tools/pcli",
|
||||
race = "off",
|
||||
binary = ":pcli",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//beacon-chain/core/state:go_default_library",
|
||||
"//beacon-chain/state:go_default_library",
|
||||
"//beacon-chain/state/stateutil:go_default_library",
|
||||
"//proto/beacon/p2p/v1:go_default_library",
|
||||
"//shared/version:go_default_library",
|
||||
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
||||
"@com_github_prysmaticlabs_go_ssz//:go_default_library",
|
||||
"@com_github_sirupsen_logrus//:go_default_library",
|
||||
"@com_github_urfave_cli_v2//:go_default_library",
|
||||
"@com_github_kr_pretty//:go_default_library",
|
||||
"@com_github_x_cray_logrus_prefixed_formatter//:go_default_library",
|
||||
"@in_gopkg_d4l3k_messagediff_v1//:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
go_binary(
|
||||
|
@ -22,24 +22,10 @@ go_library(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = ["relaynode.go"],
|
||||
base = "//tools:go_image",
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/tools/relaynode",
|
||||
pure = "on",
|
||||
race = "off",
|
||||
binary = ":relaynode",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//shared/version:go_default_library",
|
||||
"@com_github_ipfs_go_log//:go_default_library",
|
||||
"@com_github_libp2p_go_libp2p//:go_default_library",
|
||||
"@com_github_libp2p_go_libp2p_circuit//:go_default_library",
|
||||
"@com_github_libp2p_go_libp2p_crypto//:go_default_library",
|
||||
"@com_github_multiformats_go_multiaddr//:go_default_library",
|
||||
"//shared/maxprocs:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
go_binary(
|
||||
|
@ -34,44 +34,14 @@ go_library(
|
||||
|
||||
go_image(
|
||||
name = "image",
|
||||
srcs = [
|
||||
"main.go",
|
||||
"usage.go",
|
||||
],
|
||||
base = select({
|
||||
"//tools:base_image_alpine": "//tools:alpine_cc_image",
|
||||
"//tools:base_image_cc": "//tools:cc_image",
|
||||
"//conditions:default": "//tools:cc_image",
|
||||
}),
|
||||
goarch = "amd64",
|
||||
goos = "linux",
|
||||
importpath = "github.com/prysmaticlabs/prysm/validator",
|
||||
pure = "off",
|
||||
race = "off",
|
||||
binary = ":validator",
|
||||
tags = ["manual"],
|
||||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"//shared/tos:go_default_library",
|
||||
"//shared/bytesutil:go_default_library",
|
||||
"//shared/cmd:go_default_library",
|
||||
"//shared/debug:go_default_library",
|
||||
"//shared/featureconfig:go_default_library",
|
||||
"//shared/journald:go_default_library",
|
||||
"//shared/logutil:go_default_library",
|
||||
"//shared/maxprocs:go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/version:go_default_library",
|
||||
"//validator/accounts:go_default_library",
|
||||
"//validator/client:go_default_library",
|
||||
"//validator/flags:go_default_library",
|
||||
"//validator/node:go_default_library",
|
||||
"@com_github_joonix_log//:go_default_library",
|
||||
"@com_github_prysmaticlabs_ethereumapis//eth/v1alpha1:go_default_library",
|
||||
"@com_github_sirupsen_logrus//:go_default_library",
|
||||
"@com_github_urfave_cli_v2//:go_default_library",
|
||||
"@com_github_x_cray_logrus_prefixed_formatter//:go_default_library",
|
||||
"@org_golang_google_grpc//:go_default_library",
|
||||
],
|
||||
)
|
||||
|
||||
container_bundle(
|
||||
|
@ -26,8 +26,8 @@ go_library(
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["wallet_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//shared/params:go_default_library",
|
||||
"//shared/testutil:go_default_library",
|
||||
"//shared/testutil/assert:go_default_library",
|
||||
|
@ -6,9 +6,9 @@ go_library(
|
||||
srcs = ["types.go"],
|
||||
importpath = "github.com/prysmaticlabs/prysm/validator/keymanager",
|
||||
visibility = [
|
||||
"//tools/keystores:__pkg__",
|
||||
"//validator:__pkg__",
|
||||
"//validator:__subpackages__",
|
||||
"//tools/keystores:__pkg__",
|
||||
],
|
||||
deps = [
|
||||
"//proto/validator/accounts/v2:go_default_library",
|
||||
@ -19,8 +19,8 @@ go_library(
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
srcs = ["types_test.go"],
|
||||
embed = [":go_default_library"],
|
||||
deps = [
|
||||
":go_default_library",
|
||||
"//validator/keymanager/derived:go_default_library",
|
||||
"//validator/keymanager/imported:go_default_library",
|
||||
"//validator/keymanager/remote:go_default_library",
|
||||
|
Loading…
Reference in New Issue
Block a user