Skip to content

Conversation

paschalis-mpeis
Copy link
Member

Link BOLTUtils against the AArch64 target to support the new option
that enables instrumentation without LSE (see #158738)

This fixes shared library builds, eg:
https://lab.llvm.org/staging/#/builders/220/builds/1537

Note: the link points to a collapsing builder.

Link BOLTUtils against the AArch64 target to support the new option
that enables instrumentation without LSE (see #158738)

This fixes shared library builds, eg:
https://lab.llvm.org/staging/#/builders/220/builds/1537

Note: the link points to a collapsing builder.
@llvmbot
Copy link
Member

llvmbot commented Sep 26, 2025

@llvm/pr-subscribers-bolt

Author: Paschalis Mpeis (paschalis-mpeis)

Changes

Link BOLTUtils against the AArch64 target to support the new option
that enables instrumentation without LSE (see #158738)

This fixes shared library builds, eg:
https://lab.llvm.org/staging/#/builders/220/builds/1537

Note: the link points to a collapsing builder.


Full diff: https://github.com/llvm/llvm-project/pull/160854.diff

1 Files Affected:

  • (modified) bolt/lib/Target/AArch64/CMakeLists.txt (+1-1)
diff --git a/bolt/lib/Target/AArch64/CMakeLists.txt b/bolt/lib/Target/AArch64/CMakeLists.txt
index cb38117de659e..53554e75de15c 100644
--- a/bolt/lib/Target/AArch64/CMakeLists.txt
+++ b/bolt/lib/Target/AArch64/CMakeLists.txt
@@ -28,7 +28,7 @@ add_llvm_library(LLVMBOLTTargetAArch64
   AArch64CommonTableGen
   )
 
-target_link_libraries(LLVMBOLTTargetAArch64 PRIVATE LLVMBOLTCore)
+target_link_libraries(LLVMBOLTTargetAArch64 PRIVATE LLVMBOLTCore LLVMBOLTUtils)
 
 include_directories(
   ${LLVM_MAIN_SRC_DIR}/lib/Target/AArch64

Copy link
Contributor

@yozhu yozhu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about the build break. And thanks for the fix!

@paschalis-mpeis
Copy link
Member Author

No worries and thanks for your improving AArch64!

@paschalis-mpeis paschalis-mpeis merged commit f026cb0 into main Sep 26, 2025
11 checks passed
@paschalis-mpeis paschalis-mpeis deleted the users/paschalis-mpeis/fix-aarch64-shared-build branch September 26, 2025 15:49
YixingZhang007 pushed a commit to YixingZhang007/llvm-project that referenced this pull request Sep 27, 2025
Link BOLTUtils against the AArch64 target to support the new option
that enables instrumentation without LSE (see llvm#158738)

This fixes shared library builds, eg:
https://lab.llvm.org/staging/#/builders/220/builds/1537

Note: the link points to a collapsing builder.
mahesh-attarde pushed a commit to mahesh-attarde/llvm-project that referenced this pull request Oct 3, 2025
Link BOLTUtils against the AArch64 target to support the new option
that enables instrumentation without LSE (see llvm#158738)

This fixes shared library builds, eg:
https://lab.llvm.org/staging/#/builders/220/builds/1537

Note: the link points to a collapsing builder.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants