Skip to content

Commit

Permalink
Disable static builds on mac, to avoid cgo link error
Browse files Browse the repository at this point in the history
  • Loading branch information
mostynb committed Aug 29, 2023
1 parent d7a8364 commit e2f762f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ go_binary(
goarch = "amd64",
goos = "darwin",
pure = "off",
static = "on",
#static = "on", # With static enabled, I get the following error: "ld: library not found for -lcrt0.o"
visibility = ["//visibility:public"],
x_defs = {"main.gitCommit": "{STABLE_GIT_COMMIT}"},
)
Expand All @@ -97,7 +97,7 @@ go_binary(
goarch = "arm64",
goos = "darwin",
pure = "off",
static = "on",
#static = "on", # With static enabled, I get the following error: "ld: library not found for -lcrt0.o"
visibility = ["//visibility:public"],
x_defs = {"main.gitCommit": "{STABLE_GIT_COMMIT}"},
)
Expand Down

0 comments on commit e2f762f

Please sign in to comment.