xref: /llvm-project/utils/bazel/llvm_configs/BUILD.bazel (revision 8b86b3a846eea066a11583a3316cd461311cfecd)
1# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
2# See https://llvm.org/LICENSE.txt for license information.
3# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
4
5# These diff tests ensure that the current Bazel configuration does not drift
6# from the configuration in the .cmake files, since we don't alway use them
7# directly (and even if we did we wouldn't necessarily pick up changes there).
8# These are literal change-detector tests. We perform diff testing here since
9# it isn't really part of building LLVM and we don't want to include the config
10# copies in the workspace used by dependent projects.
11
12load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
13
14diff_test(
15    name = "diff_config.h.cmake",
16    file1 = "@llvm-project//llvm:include/llvm/Config/config.h.cmake",
17    file2 = "config.h.cmake",
18)
19
20diff_test(
21    name = "diff_llvm-config.h.cmake",
22    file1 = "@llvm-project//llvm:include/llvm/Config/llvm-config.h.cmake",
23    file2 = "llvm-config.h.cmake",
24)
25
26diff_test(
27    name = "diff_abi-breaking.h.cmake",
28    file1 = "@llvm-project//llvm:include/llvm/Config/abi-breaking.h.cmake",
29    file2 = "abi-breaking.h.cmake",
30)
31