diff --git a/utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel b/utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel new file mode 100644 --- /dev/null +++ b/utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel @@ -0,0 +1,40 @@ +# This file is licensed under the Apache License v2.0 with LLVM Exceptions. +# See https://llvm.org/LICENSE.txt for license information. +# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception + +package( + default_visibility = ["//visibility:public"], + features = ["layering_check"], +) + +licenses(["notice"]) + +cc_library( + name = "config", + defines = [ + "COMPILER_RT_HAS_ATOMICS=1", + "COMPILER_RT_HAS_FCNTL_LCK=1", + "COMPILER_RT_HAS_UNAME=1", + ], +) + +cc_library( + name = "profile", + srcs = glob([ + "lib/profile/*.c", + "lib/profile/*.cpp", + "lib/profile/*.h", + ], exclude = [ + "lib/profile/WindowsMMap.c", + ]), + hdrs = glob([ + "include/profile/*.inc", + ]), + includes = [ + "include", + ], + deps = [ + ":config", + ], + linkstatic = True, +)