Skip to content

Commit

Permalink
Fix build @com_github_ethereum_c_kzg_4844//... (#12890)
Browse files Browse the repository at this point in the history
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
  • Loading branch information
prestonvanloon and prylabs-bulldozer[bot] authored Sep 12, 2023
1 parent 9ecf4d3 commit 0ccfc74
Showing 1 changed file with 30 additions and 22 deletions.
52 changes: 30 additions & 22 deletions third_party/com_github_ethereum_c_kzg_4844.patch
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
--- a/src/BUILD.bazel 1969-12-31 18:00:00.000000000 -0600
+++ b/src/BUILD.bazel 2023-06-14 14:04:30.351403498 -0500
@@ -0,0 +1,8 @@
+cc_library(
+ name = "kzg",
+ hdrs = [
+ "c_kzg_4844.c",
+ "c_kzg_4844.h",
+ ],
+ visibility = ["//visibility:public"],
+)
--- a/bindings/go/blst_headers/BUILD.bazel 1969-12-31 18:00:00.000000000 -0600
+++ b/bindings/go/blst_headers/BUILD.bazel 2023-06-14 13:24:09.719404241 -0500
@@ -0,0 +1,5 @@
+cc_library(
+ name = "hdrs",
+ hdrs = glob(["*.h"]),
+ visibility = ["//visibility:public"],
+)
--- a/bindings/go/BUILD.bazel 2023-06-14 15:06:46.875902949 -0500
+++ b/bindings/go/BUILD.bazel 2023-06-14 15:07:05.491898747 -0500
@@ -4,10 +4,14 @@
diff --git a/bindings/go/BUILD.bazel b/bindings/go/BUILD.bazel
index 7e49df7..1d476f7 100644
--- a/bindings/go/BUILD.bazel
+++ b/bindings/go/BUILD.bazel
@@ -4,10 +4,14 @@ load("@prysm//tools/go:def.bzl", "go_library")
go_library(
name = "go",
srcs = ["main.go"],
Expand All @@ -36,3 +19,28 @@
],
importpath = "github.com/ethereum/c-kzg-4844/bindings/go",
visibility = ["//visibility:public"],
diff --git a/bindings/go/blst_headers/BUILD.bazel b/bindings/go/blst_headers/BUILD.bazel
new file mode 100644
index 0000000..82cad2c
--- /dev/null
+++ b/bindings/go/blst_headers/BUILD.bazel
@@ -0,0 +1,5 @@
+cc_library(
+ name = "hdrs",
+ hdrs = glob(["*.h"]),
+ visibility = ["//visibility:public"],
+)
diff --git a/src/BUILD.bazel b/src/BUILD.bazel
new file mode 100644
index 0000000..b3f845d
--- /dev/null
+++ b/src/BUILD.bazel
@@ -0,0 +1,8 @@
+cc_library(
+ name = "kzg",
+ hdrs = [
+ "c_kzg_4844.c",
+ "c_kzg_4844.h",
+ ],
+ visibility = ["//visibility:public"],
+)

0 comments on commit 0ccfc74

Please sign in to comment.