blob: 16480416e5ebb9838cbe3ad301c165148069691a [file] [log] [blame]
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "global_allocator_library",
srcs = select({
# Windows doesn't support weak symbol linkage.
# If someone can make this work on Windows, please do!
# For now we will silently not supply any symbols, because it would be very messy to conditionally define the default allocator library on toolchains depending on the platform.
"@platforms//os:windows": ["empty.cc"],
"//conditions:default": ["global_allocator_library.cc"],
}),
tags = ["manual"],
visibility = ["//visibility:public"],
)