2023-03-02 23:42:35 +02:00
|
|
|
# Copyright 2023 Uber Technologies, Inc.
|
2023-04-20 03:23:25 +03:00
|
|
|
# Licensed under the MIT License
|
2023-03-02 23:42:35 +02:00
|
|
|
|
2023-01-18 22:39:35 +02:00
|
|
|
load("@bazel-zig-cc//rules:platform.bzl", "platform_binary")
|
|
|
|
|
|
|
|
cc_binary(
|
|
|
|
name = "main",
|
|
|
|
srcs = ["main.c"],
|
|
|
|
)
|
|
|
|
|
|
|
|
[
|
|
|
|
(
|
|
|
|
platform_binary(
|
|
|
|
name = "main_{}".format(name),
|
|
|
|
src = "main",
|
|
|
|
platform = platform,
|
|
|
|
),
|
|
|
|
)
|
|
|
|
for name, platform in [
|
|
|
|
("linux_amd64_musl", "//libc_aware/platform:linux_amd64_musl"),
|
|
|
|
("linux_amd64_gnu.2.19", "//libc_aware/platform:linux_amd64_gnu.2.19"),
|
|
|
|
("linux_amd64_gnu.2.28", "//libc_aware/platform:linux_amd64_gnu.2.28"),
|
|
|
|
("linux_arm64_musl", "//libc_aware/platform:linux_arm64_musl"),
|
|
|
|
]
|
|
|
|
]
|