[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / utils / bazel / llvm_configs / BUILD.bazel
blob5a4f9970c06368c83af68a3f6e06a5bc91b15986
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
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.
12 load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
14 diff_test(
15     name = "diff_config.h.cmake",
16     file1 = "@llvm-project//llvm:include/llvm/Config/config.h.cmake",
17     file2 = "config.h.cmake",
20 diff_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",
26 diff_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",