[llvm] [Build] Fix llvm-calc-occupancy link errors when using LLVM_LINK_LLVM_DYLIB. (PR #213262)

Paul Walker via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 31 05:25:49 PDT 2026


https://github.com/paulwalker-arm created https://github.com/llvm/llvm-project/pull/213262

I don't know if this is the correct fix but I've not been able to build since yesterday and other tools have this in the cmake config.

>From 4231f1404cbb9d094a06c5360a5c078f86fadb23 Mon Sep 17 00:00:00 2001
From: Paul Walker <paul.walker at arm.com>
Date: Fri, 31 Jul 2026 12:13:20 +0000
Subject: [PATCH] [Build] Fix llvm-calc-occupancy link errors when using
 LLVM_LINK_LLVM_DYLIB.

---
 llvm/tools/llvm-calc-occupancy/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/tools/llvm-calc-occupancy/CMakeLists.txt b/llvm/tools/llvm-calc-occupancy/CMakeLists.txt
index 9580d855f06a3..87937770cfb35 100644
--- a/llvm/tools/llvm-calc-occupancy/CMakeLists.txt
+++ b/llvm/tools/llvm-calc-occupancy/CMakeLists.txt
@@ -23,6 +23,7 @@ set(LLVM_LINK_COMPONENTS
   )
 
 add_llvm_tool(llvm-calc-occupancy
+  DISABLE_LLVM_LINK_LLVM_DYLIB
   llvm-calc-occupancy.cpp
 
   DEPENDS



More information about the llvm-commits mailing list