summaryrefslogtreecommitdiff
path: root/BUILD.bazel
blob: 7adc1f33217e83f348b6d35d0509a1bb1de5146f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Copyright 2025 Steven Le Rouzic
#
# SPDX-License-Identifier: BSD-3-Clause

load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands")

refresh_compile_commands(
    name = "refresh_clangd",
    targets = "//...",
)

platform(
    name = "x64_windows-clang-cl",
    constraint_values = [
        "@platforms//cpu:x86_64",
        "@platforms//os:windows",
        # @Todo(bazel) Bit weird to use a private thing.
        # We used to use @bazel_tools//tools/cpp:clang-cl but it's deprecated
        # in favor of... this?...
        "@rules_cc//cc/private/toolchain:clang-cl",
    ],
)