1 load("@bazel_skylib//lib:selects.bzl", "selects")
5 package(default_visibility = ["//visibility:public"])
8 name = "msvc_compiler",
9 flag_values = {"@bazel_tools//tools/cpp:compiler": "msvc-cl"},
12 selects.config_setting_group(
15 "@platforms//os:windows",
25 additional_linker_inputs = select({
26 "@platforms//os:macos": [":cmake/darwin-ld-cpython.sym"],
27 "//conditions:default": [],
32 "/Os", # size optimizations
33 "/GL", # LTO / whole program optimization
35 # these should work on both clang and gcc.
36 "//conditions:default": [
43 "ext/robin_map/include",
47 ":winplusmsvc": ["/LTGC"], # Windows + MSVC.
48 "@platforms//os:macos": ["-Wl,@$(location :cmake/darwin-ld-cpython.sym)"], # Apple.
49 "//conditions:default": [],
55 "ext/robin_map/include/tsl/*.h",
58 deps = ["@python_headers"],