[llvm] 657f38c - [gn] Fix oversight from cf6527a49669c796b (#205660)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 24 12:55:05 PDT 2026


Author: Nico Weber
Date: 2026-06-24T15:55:01-04:00
New Revision: 657f38cbb57ecb5c6b17766147cd342b99700c6b

URL: https://github.com/llvm/llvm-project/commit/657f38cbb57ecb5c6b17766147cd342b99700c6b
DIFF: https://github.com/llvm/llvm-project/commit/657f38cbb57ecb5c6b17766147cd342b99700c6b.diff

LOG: [gn] Fix oversight from cf6527a49669c796b (#205660)

Without this, the interception/interception.h include in
InstProfilingPlatformROCm.cpp isn't found.

Added: 
    

Modified: 
    llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn
index 107109cdfd47f..a57499c4a0e71 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn
@@ -1,6 +1,9 @@
 import("//compiler-rt/target.gni")
 
 static_library("profile") {
+  configs -= [ "//llvm/utils/gn/build:llvm_code" ]
+  configs += [ "//llvm/utils/gn/build:crt_code" ]
+
   output_dir = crt_current_out_dir
   if (current_os == "mac") {
     output_name = "clang_rt.profile_osx"


        


More information about the llvm-commits mailing list