1

downgrade glibc to 2.19 and update README

This commit is contained in:
2021-06-07 23:17:19 +03:00
committed by Motiejus Jakštys
parent 6ed6563a37
commit b826ad9439
8 changed files with 49 additions and 96 deletions

View File

@@ -1,15 +1,26 @@
cc_binary(
name = "hello",
srcs = ["hello.cpp"],
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
go_library(
name = "go_lib",
srcs = ["hello.go"],
cgo = True,
importpath = "github.com/motiejus/bazel-zig-cc/test",
visibility = ["//visibility:private"],
)
go_binary(
name = "gognu",
embed = [":go_lib"],
visibility = ["//visibility:public"],
)
go_binary(
name = "gomusl",
embed = [":go_lib"],
static = "on",
target_compatible_with = select({
"@platforms//os:linux": ["@com_github_ziglang_zig//:musl"],
"//conditions:default": [],
}),
visibility = ["//visibility:public"],
)
cc_binary(
name = "exception",
srcs = ["exception.cpp"],
)
# go build -ldflags "-linkmode external -extldflags -static" hello.go