[PATCH] D156095: [Bazel] Introduce `//compiler-rt:profile`
NAKAMURA Takumi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 25 06:54:55 PDT 2023
chapuni updated this revision to Diff 543956.
chapuni marked 3 inline comments as done.
chapuni added a comment.
- Add `*.cpp` to srcs
- Remove `copts`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156095/new/
https://reviews.llvm.org/D156095
Files:
utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel
Index: utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel
===================================================================
--- /dev/null
+++ 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,
+)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156095.543956.patch
Type: text/x-patch
Size: 1113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230725/f2d076eb/attachment.bin>
More information about the llvm-commits
mailing list