31 lines · plain
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-exception4 5load("@rules_cc//cc:defs.bzl", "cc_test")6 7package(8 default_visibility = ["//visibility:public"],9 features = ["layering_check"],10)11 12licenses(["notice"])13 14[15 cc_test(16 name = "{}".format(file.split(".")[0]),17 srcs = [file] + glob(["*.h"]),18 deps = [19 "//compiler-rt:orc_rt",20 "//compiler-rt:orc_rt_common_headers",21 "//third-party/unittest:gtest",22 "//third-party/unittest:gtest_main",23 ],24 )25 for file in glob(26 ["*.cpp"],27 # TODO: Broken with older libc++ versions, currently unused anyways28 exclude = ["interval_set_test.cpp"],29 )30]31