| load("@rules_cc//cc:defs.bzl", "cc_library") |
| |
| cc_library( |
| name = "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": ["allocator_library.cc"], |
| }), |
| tags = ["manual"], |
| visibility = ["//visibility:public"], |
| ) |