[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / utils / bazel / llvm-project-overlay / compiler-rt / BUILD.bazel
blob573549781ab73207b06ef106f0d6854f2d1090b6
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 package(
6     default_visibility = ["//visibility:public"],
7     features = ["layering_check"],
10 licenses(["notice"])
12 cc_library(
13     name = "config",
14     defines = select({
15         "@platforms//os:linux": [
16             "COMPILER_RT_HAS_ATOMICS=1",
17             "COMPILER_RT_HAS_FCNTL_LCK=1",
18             "COMPILER_RT_HAS_UNAME=1",
19         ],
20         # Will raise error unless supported platforms.
21     }),
24 WIN32_ONLY_FILES = [
25     "lib/profile/WindowsMMap.c",
28 cc_library(
29     name = "profile",
30     srcs = glob(
31         [
32             "lib/profile/*.c",
33             "lib/profile/*.cpp",
34             "lib/profile/*.h",
35         ],
36         exclude = WIN32_ONLY_FILES,
37     ) + select({
38         "@platforms//os:windows": WIN32_ONLY_FILES,
39         "//conditions:default": []
40     }),
41     hdrs = glob([
42         "include/profile/*.inc",
43     ]),
44     includes = [
45         "include",
46     ],
47     deps = [
48         ":config",
49     ],
50     linkstatic = True,