xref: /llvm-project/utils/bazel/llvm-project-overlay/compiler-rt/lib/orc/tests/unit/BUILD.bazel (revision 134176058fdee712ad213e83a39aec2d107dda42)
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
5package(
6    default_visibility = ["//visibility:public"],
7    features = ["layering_check"],
8)
9
10licenses(["notice"])
11
12[
13    cc_test(
14        name = "{}".format(file.split(".")[0]),
15        srcs = [file] + glob(["*.h"]),
16        deps = [
17            "//compiler-rt:orc_rt",
18            "//compiler-rt:orc_rt_common_headers",
19            "//third-party/unittest:gtest",
20            "//third-party/unittest:gtest_main",
21        ],
22    )
23    for file in glob(
24        ["*.cpp"],
25        # TODO: Broken with older libc++ versions, currently unused anyways
26        exclude = ["interval_set_test.cpp"],
27    )
28]
29