Skip to content

Commit

Permalink
bazel: default to purego (no CGO)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockwotj committed Jan 4, 2025
1 parent 4430087 commit 7536982
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ common --@toolchains_llvm//toolchain/config:compiler-rt=False
build --linkopt --unwindlib=libgcc
build --linkopt -stdlib=libc++

# By default build without CGO
build --@rules_go//go/config:pure

common:clang-19 --extra_toolchains=@llvm_19_toolchain//:all

build:system-clang --extra_toolchains=@local_config_cc_toolchains//:all
Expand Down
2 changes: 1 addition & 1 deletion MODULE.bazel.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions bazel/packaging/bin_wrapper/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ load("@rules_go//go:def.bzl", "go_binary")
go_binary(
name = "rpk",
srcs = ["main.go"],
pure = "on",
visibility = ["//bazel/packaging:__pkg__"],
x_defs = {
"BinaryPath": "/opt/redpanda/libexec/rpk",
Expand All @@ -15,7 +14,6 @@ go_binary(
go_binary(
name = "redpanda",
srcs = ["main.go"],
pure = "on",
visibility = ["//bazel/packaging:__pkg__"],
x_defs = {
"BinaryPath": "/opt/redpanda/libexec/redpanda",
Expand Down
1 change: 0 additions & 1 deletion src/go/rpk/cmd/rpk/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ go_library(
go_binary(
name = "rpk",
embed = [":rpk_lib"],
pure = "on",
visibility = ["//visibility:public"],
)

0 comments on commit 7536982

Please sign in to comment.