27fe6c9ffb
motiejus@mtwork:/code/bazel-zig-cc$ bazel build --spawn_strategy=local --platforms @zig_sdk//libc_aware/platform:macos_aarch64_sdk.13.1 test/c:which_libc INFO: Analyzed target //test/c:which_libc (0 packages loaded, 0 targets configured). INFO: Found 1 target... Target //test/c:which_libc up-to-date: bazel-bin/test/c/which_libc INFO: Elapsed time: 0.071s, Critical Path: 0.00s INFO: 1 process: 1 internal. INFO: Build completed successfully, 1 total action motiejus@mtwork:/code/bazel-zig-cc$ file bazel-bin/test/c/which_libc bazel-bin/test/c/which_libc: Mach-O 64-bit arm64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE> motiejus@mtwork:/code/bazel-zig-cc$
28 lines
641 B
Plaintext
28 lines
641 B
Plaintext
# Copyright 2023 Uber Technologies, Inc.
|
|
# Licensed under the Apache License, Version 2.0
|
|
|
|
load("@bazel-zig-cc//toolchain:defs.bzl", "declare_files")
|
|
load("@bazel-zig-cc//toolchain/private:cc_toolchains.bzl", "declare_cc_toolchains")
|
|
|
|
package(
|
|
default_visibility = ["//visibility:public"],
|
|
)
|
|
|
|
declare_files(
|
|
os = {os},
|
|
macos_sdk_versions = {macos_sdk_versions},
|
|
)
|
|
|
|
exports_files([
|
|
"glibc-hacks/fcntl.map",
|
|
"glibc-hacks/fcntl.h",
|
|
"glibc-hacks/res_search.map",
|
|
"glibc-hacks/res_search.h",
|
|
])
|
|
|
|
declare_cc_toolchains(
|
|
os = {os},
|
|
zig_sdk_path = {zig_sdk_path},
|
|
macos_sdk_versions = {macos_sdk_versions},
|
|
)
|