[llvm] [bazel] Exclude `profile_rocm` related file for now. (PR #201800)

NAKAMURA Takumi via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 5 03:19:12 PDT 2026


https://github.com/chapuni created https://github.com/llvm/llvm-project/pull/201800

This has been intrdocued in #201606.

>From 3570e9d5e085765a6a946dab539959e8913e5a10 Mon Sep 17 00:00:00 2001
From: NAKAMURA Takumi <geek4civic at gmail.com>
Date: Fri, 5 Jun 2026 15:26:36 +0900
Subject: [PATCH] [bazel] Exclude `profile_rocm` related file for now.

This has been intrdocued in #201606.
---
 utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel b/utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel
index 1815d32651342..ff4b381abe064 100644
--- a/utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/compiler-rt/BUILD.bazel
@@ -15,7 +15,6 @@ cc_library(
     name = "config",
     defines = select({
         "@platforms//os:linux": [
-            "COMPILER_RT_BUILD_PROFILE_ROCM=1",
             "COMPILER_RT_HAS_ATOMICS=1",
             "COMPILER_RT_HAS_FCNTL_LCK=1",
             "COMPILER_RT_HAS_UNAME=1",
@@ -32,6 +31,10 @@ WIN32_ONLY_FILES = [
     "lib/profile/WindowsMMap.c",
 ]
 
+PROFILE_ROCM_FILES = [
+    "lib/profile/InstrProfilingPlatformROCm.cpp",
+]
+
 cc_library(
     name = "sanitizer_common_headers",
     hdrs = glob([
@@ -79,7 +82,7 @@ cc_library(
             "lib/profile/*.cpp",
             "lib/profile/*.h",
         ],
-        exclude = WIN32_ONLY_FILES,
+        exclude = WIN32_ONLY_FILES + PROFILE_ROCM_FILES,
     ) + select({
         "@platforms//os:windows": WIN32_ONLY_FILES,
         "//conditions:default": [],



More information about the llvm-commits mailing list